vercel billing usage
The vercel billing usage command displays billing usage for the current billing period or a custom date range. It shows usage and costs for each service, helping you understand your resource consumption.
This is only available for Owner, Member, Developer, Security, Billing, and Enterprise Viewer roles for the current active team.
The command is available in vercel@65.11.0 and later, where the old name, vercel usage, still works but prints a deprecation warning. Use vercel billing usage in new scripts.
vercel billing usageUsing the vercel billing usage command to view billing usage
for the current billing period.
vercel billing usage --since 2025-01-01 --until 2025-01-31Using the vercel billing usage command to view billing usage
for a custom date range.
The command outputs separate tables for infrastructure usage and subscription licenses. Each table shows:
- Service: The name of each Vercel service
- Usage: The quantity used, in the service's unit
- Cost: The cost accrued before credits and discounts, in USD or legacy MIUs. It isn't the amount on your invoice.
These are options that only apply to the vercel billing usage command.
The --since option, shorthand -s, specifies the start of the usage query. It accepts a YYYY-MM-DD date, an ISO 8601 timestamp, or a relative duration such as 7d. Date-only values start at midnight in Los Angeles (Pacific) time. Relative durations count backward from now.
vercel billing usage --since 7dUsing the vercel billing usage command with a custom start
date.
When you provide --since alone, the end defaults to now. Omit both time options to query the current billing period.
The --until option, shorthand -u, specifies the end of the usage query. It accepts the same formats as --since. A date-only value includes the full day in Los Angeles (Pacific) time, ending at the next midnight.
vercel billing usage --since 2025-01-01 --until 2025-01-31Using the vercel billing usage command with a custom end
date.
When using --until, you must also specify --since.
--from and --to remain supported, but print a deprecation warning. Use --since and --until for new commands.
The --breakdown option shows usage grouped by time period instead of aggregated totals. Valid values are daily, weekly, or monthly.
vercel billing usage --breakdown dailyUsing the vercel billing usage command to show daily usage
breakdown.
vercel billing usage --since 2025-01-01 --until 2025-01-31 --breakdown weeklyCombining --breakdown with a custom date range.
When using the breakdown mode, the output shows:
- Usage grouped by the specified period (day, week, or month)
- Per-service details for each period
- The total cost for each period
The data supports 1-day granularity with a maximum date range of 1 year.
The --group-by option shows usage grouped by a dimension instead of aggregated totals. Valid values are project and region. You can't combine --group-by with --breakdown.
vercel billing usage --group-by projectUsing the vercel billing usage command to show usage for each
project.
The --json option prints the usage data as a single JSON object on stdout instead of a table. --format json still works but is deprecated.
vercel billing usage --jsonUsing the vercel billing usage command to output usage data
as JSON.
The JSON output includes:
period: The start and end of the querycontext: The account or team namecostUnit:USDormanaged_infrastructure_units, for every cost in the outputservices: An array of services with usage and cost detailstotals: Aggregated totals for all servicescreditBalance: The current credit balance, when available. It's omitted for custom date ranges
When using --breakdown, the JSON output includes a breakdown object with the usage for each period. When using --group-by, it includes a groupBy object with the usage for each project or region.
The following global options can be passed when using the vercel billing usage command:
For more information on global options and their usage, refer to the options section.
Was this helpful?