Description
The Cloud CLI currently has no way to view billing, usage, or traffic information. Users must open the Cloud dashboard to check bandwidth consumption, request counts, compute hours, or estimated costs.
As the CLI already covers most operational workflows (deployments, environments, commands, domains, etc.), adding billing and usage visibility would make it a complete management tool without requiring context-switching to the browser.
Suggested commands
# Current billing period summary (compute, bandwidth, requests, storage, cost)
cloud billing:usage
# Usage breakdown per environment
cloud billing:usage --environment=production
# Usage for a specific time range
cloud billing:usage --from=2026-03-01 --to=2026-03-18
# Current billing period invoice / cost estimate
cloud billing:estimate
# List past invoices
cloud billing:invoices
# View a specific invoice
cloud billing:invoice <invoice-id>
All commands should support --json for machine-readable output (useful for monitoring scripts, alerts, and CI cost tracking).
Use cases
- Quick traffic check: After a deployment or marketing campaign, verify bandwidth/request usage without leaving the terminal
- Cost monitoring in CI: Integrate usage checks into deployment pipelines to flag unexpected cost increases
- Multi-environment comparison: Compare usage across staging vs. production
- Budget alerts: Script periodic checks with
--json output to trigger notifications when usage exceeds thresholds
Context
Related to #68 (metrics endpoints) but distinct — #68 covers real-time resource performance metrics (CPU, memory, connections), while this request covers aggregate billing and traffic data over time.
Environment
Description
The Cloud CLI currently has no way to view billing, usage, or traffic information. Users must open the Cloud dashboard to check bandwidth consumption, request counts, compute hours, or estimated costs.
As the CLI already covers most operational workflows (deployments, environments, commands, domains, etc.), adding billing and usage visibility would make it a complete management tool without requiring context-switching to the browser.
Suggested commands
All commands should support
--jsonfor machine-readable output (useful for monitoring scripts, alerts, and CI cost tracking).Use cases
--jsonoutput to trigger notifications when usage exceeds thresholdsContext
Related to #68 (metrics endpoints) but distinct — #68 covers real-time resource performance metrics (CPU, memory, connections), while this request covers aggregate billing and traffic data over time.
Environment