Vercel CLI 新增支出管理功能
现在,你可以直接在 Vercel CLI 里查看和管理团队的 支出管理 预算。运行 vercel budgets,你(或者你运行的脚本和代理程序)就能拿到当前支出和生效中的预算。
$ vercel budgets
> No budget set on team my-team. Current spend is $63.33. Create one with `vercel --scope my-team budgets set --amount <dollars>`.
$ vercel budgets set --amount 200 --pause
> Pause all projects on team my-team at 100% ($200). Production deployments become unavailable.
> Success! Budget updated on team my-team.
scope amount spent used status pause webhook
team $200 $63.33 32% active yes —
$ vercel budgets
查看、设置和移除预算
这与贵团队账单设置中显示的按需预算相同。设置预算本身并不会停止用量。--pause 标志会在支出达到 100% 时暂停所有项目的生产部署。
查看预算告警历史
现在可以查看预算告警的历史记录了。运行 vercel budgets alerts 能看到完整日志,并可用 --since、--until、--limit 和 --json 进行筛选。单独运行 vercel budgets(不带子命令)会打印最近三条告警。
$ vercel budgets alerts
> 3 budget alerts on team my-team
date budget threshold spent budget amount actions configured
2026-09-21 14:33 UTC team 50% $313.33 $600 notify
2026-09-19 23:12 UTC team 100% $313.33 $
$250 notify, pause
2026-09-19 02:35 UTC team 75% $230.00 $300 notify
管理预算需要 Owner 或 Billing 角色。Pro 团队以及采用 Flexible Commitment 计划的 Enterprise 团队可免费使用支出管理功能。