Skip to content

feat(cli): Introduce usage cmd#14733

Merged
mingchungx merged 6 commits intomainfrom
mingchungx/cli-cmd-usage
Feb 11, 2026
Merged

feat(cli): Introduce usage cmd#14733
mingchungx merged 6 commits intomainfrom
mingchungx/cli-cmd-usage

Conversation

@mingchungx
Copy link
Copy Markdown
Contributor

@mingchungx mingchungx commented Jan 26, 2026

Introduce usage cmd

Introduces a new cmd to the CLI for pulling and aggregating usage data for the current Vercel team for a particular time period. Defaults to the current month if period is not supplied.

This is an extension of a new endpoint I've built for api.vercel.com/v1/billing/charges which is already GAed. See the docs here: https://docs.vercel.com/docs/rest-api/reference/endpoints/billing/list-focus-billing-charges

Group 1

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 26, 2026

🦋 Changeset detected

Latest commit: 71fbcb9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 26, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-r1isu9kba.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-r1isu9kba.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Copy link
Copy Markdown
Contributor Author

mingchungx commented Jan 26, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mingchungx mingchungx self-assigned this Jan 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 26, 2026

🧪 Unit Test Strategy

Comparing: 16f542471fbcb9 (view diff)

Strategy: Code changed outside of a package - running all unit tests

⚠️ All unit tests will run because global code changes could impact all packages.

Affected packages - 15 (38%)
  1. vercel
  2. @vercel/build-utils
  3. @vercel/client
  4. @vercel/firewall
  5. @vercel/fs-detectors
  6. @vercel/go
  7. @vercel/hydrogen
  8. @vercel/next
  9. @vercel/node
  10. @vercel/python
  11. @vercel/remix-builder
  12. @vercel/ruby
  13. @vercel/rust
  14. @vercel/static-build
  15. examples
Unaffected packages - 25 (63%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/cervel
  4. @vercel/cli-auth
  5. @vercel/config
  6. @vercel/detect-agent
  7. @vercel/edge
  8. @vercel/elysia
  9. @vercel/error-utils
  10. @vercel/express
  11. @vercel/fastify
  12. @vercel/frameworks
  13. @vercel/functions
  14. @vercel/gatsby-plugin-vercel-builder
  15. @vercel/h3
  16. @vercel/hono
  17. @vercel/koa
  18. @vercel/nestjs
  19. @vercel/oidc
  20. @vercel/oidc-aws-credentials-provider
  21. @vercel/python-analysis
  22. @vercel/redwood
  23. @vercel/related-projects
  24. @vercel/routing-utils
  25. @vercel/static-config

Results

  • Unit tests: All affected packages will run unit tests
  • E2E tests: Handled separately (Version Packages PRs or run-e2e-tests label)
  • Type checks: All affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@socket-security
Copy link
Copy Markdown

socket-security bot commented Jan 26, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​types/​luxon@​3.6.21001007783100
Addednpm/​luxon@​3.7.2961009085100

View full report

@mingchungx mingchungx enabled auto-merge (squash) January 27, 2026 17:14
@mingchungx mingchungx merged commit 62425c1 into main Feb 11, 2026
132 checks passed
@mingchungx mingchungx deleted the mingchungx/cli-cmd-usage branch February 11, 2026 21:40
elprans added a commit that referenced this pull request Feb 11, 2026
The just-merged #14733 broke the CLI build:

	vercel:build: > vercel@50.15.1 build
	vercel:build: > node scripts/build.mjs
	vercel:build:
	vercel:build:
	vercel:build: Error: src/index.ts uses require() to load commands (1 occurrence(s)).
	vercel:build: Commands must be loaded via: (await import('./commands-bulk.js')).<name>
	vercel:build: We use this pattern for more efficient code splitting and minimizing the startup time of the CLI.
	vercel:build:
	vercel:build:  ELIFECYCLE  Command failed with exit code 1.
	vercel:build: ERROR: command finished with error: command

Use correct import mechanism.
tknickman pushed a commit that referenced this pull request Feb 12, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/build-utils@13.4.0

### Minor Changes

- [services] synchronize dependencies in dev mode for JS/TS and Python
services ([#14987](#14987))

### Patch Changes

- Add new expirementalTrigger format for queues v2beta
([#14970](#14970))

- Updated dependencies
\[[`a960cf23a42ff1a570c808ee9567670c24422f98`](a960cf2)]:
    -   @vercel/python-analysis@0.4.1

## vercel@50.16.0

### Minor Changes

- [services] synchronize dependencies in dev mode for JS/TS and Python
services ([#14987](#14987))

- Add `contract` cli cmd for checking contract commitments
([#14735](#14735))

- Add `usage` command to check billing and usage information
([#14733](#14733))

### Patch Changes

- Add `--plan` flag to `vercel integration add` for specifying a billing
plan ID ([#14965](#14965))

- Include the current Vercel CLI version in `.vercel/output/builds.json`
generated by `vercel build`.
([#14999](#14999))

- Fixed deployment rate limit error message displaying incorrect retry
time ([#14947](#14947))

- [services] services dev server orchestrator framework fallback fix
([#14985](#14985))

- Add new expirementalTrigger format for queues v2beta
([#14970](#14970))

- non-interactive mode for link - selectOrg
([#15003](#15003))

- non-interactive mode for link
([#15001](#15001))

- Remove tags column from `integration discover` table and compact
terminal views to reduce width on small screens. Tags remain available
in JSON output. ([#15000](#15000))

- non-interactive mode for link - enable for agents
([#15002](#15002))

- Add `--breakdown` option to `vercel usage` for viewing usage broken
down by period ([#14741](#14741))

- Updated dependencies
\[[`8f2c79045858cd41fa89522ee13f2ce5d6c81be1`](8f2c790),
[`2686071de8e17161babea397fcd12226de8ecce9`](2686071),
[`a960cf23a42ff1a570c808ee9567670c24422f98`](a960cf2)]:
    -   @vercel/build-utils@13.4.0
    -   @vercel/python@6.12.0
    -   @vercel/backends@0.0.33
    -   @vercel/elysia@0.1.36
    -   @vercel/express@0.1.45
    -   @vercel/fastify@0.1.39
    -   @vercel/go@3.4.0
    -   @vercel/h3@0.1.45
    -   @vercel/hono@0.2.39
    -   @vercel/hydrogen@1.3.5
    -   @vercel/koa@0.1.19
    -   @vercel/nestjs@0.2.40
    -   @vercel/next@4.15.28
    -   @vercel/node@5.6.3
    -   @vercel/redwood@2.4.9
    -   @vercel/remix-builder@5.5.10
    -   @vercel/ruby@2.3.0
    -   @vercel/rust@1.0.5
    -   @vercel/static-build@2.8.37

## @vercel/python@6.12.0

### Minor Changes

- [services] synchronize dependencies in dev mode for JS/TS and Python
services ([#14987](#14987))

### Patch Changes

- log contents of malformed manifests
([#15019](#15019))

- Updated dependencies
\[[`a960cf23a42ff1a570c808ee9567670c24422f98`](a960cf2)]:
    -   @vercel/python-analysis@0.4.1

## @vercel/backends@0.0.33

### Patch Changes

- Updated dependencies
\[[`8f2c79045858cd41fa89522ee13f2ce5d6c81be1`](8f2c790),
[`2686071de8e17161babea397fcd12226de8ecce9`](2686071)]:
    -   @vercel/build-utils@13.4.0

## @vercel/cervel@0.0.20

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/backends@0.0.33

## @vercel/client@17.2.40

### Patch Changes

- Updated dependencies
\[[`8f2c79045858cd41fa89522ee13f2ce5d6c81be1`](8f2c790),
[`2686071de8e17161babea397fcd12226de8ecce9`](2686071)]:
    -   @vercel/build-utils@13.4.0

## @vercel/config@0.0.30

### Patch Changes

- Add new expirementalTrigger format for queues v2beta
([#14970](#14970))

## @vercel/elysia@0.1.36

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/express@0.1.45

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3
    -   @vercel/cervel@0.0.20

## @vercel/fastify@0.1.39

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/gatsby-plugin-vercel-builder@2.0.135

### Patch Changes

- Updated dependencies
\[[`8f2c79045858cd41fa89522ee13f2ce5d6c81be1`](8f2c790),
[`2686071de8e17161babea397fcd12226de8ecce9`](2686071)]:
    -   @vercel/build-utils@13.4.0

## @vercel/h3@0.1.45

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/hono@0.2.39

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/koa@0.1.19

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/mcp-adapter@0.3.2

### Patch Changes

- Fix .repository field in package.json to make it possible to publish
([#14997](#14997))

## @vercel/nestjs@0.2.40

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.3

## @vercel/node@5.6.3

### Patch Changes

- Updated dependencies
\[[`8f2c79045858cd41fa89522ee13f2ce5d6c81be1`](8f2c790),
[`2686071de8e17161babea397fcd12226de8ecce9`](2686071)]:
    -   @vercel/build-utils@13.4.0

## @vercel/python-analysis@0.4.1

### Patch Changes

- log contents of malformed manifests
([#15019](#15019))

## @vercel/static-build@2.8.37

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.0.135

## @vercel/python-runtime@0.4.0

### Minor Changes

- Install \_runtime_requirements.txt during lambda execution if
provided. ([#15011](#15011))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli minor Minor version bump semver: minor PR contains new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants