Skip to content

Billing

View billing information, usage costs, and pricing.

Commands

Billing Overview

bnerd billing overview

Shows the billing summary with total costs for the selected time period.

Costs by Project

bnerd billing projects

Shows costs broken down by project.

Detailed Breakdown

bnerd billing details

Shows a detailed resource-level cost breakdown.

Pricing Information

bnerd billing pricing

Shows current pricing for all resource types.

Flags

All billing subcommands share these flags:

Flag Type Default Description
--project string Filter by project ID
--from string Start date (RFC3339 format, e.g., 2024-01-01T00:00:00Z)
--to string End date (RFC3339 format)
--time-range string 24h Time range: 24h, 7d, 30d

Time range vs. date range

If --from and --to are not specified, --time-range is used. If --from/--to are specified, --time-range is ignored.

Examples

# Last 24 hours overview
bnerd billing overview

# Last 30 days
bnerd billing overview --time-range 30d

# Specific date range
bnerd billing details --from 2024-01-01T00:00:00Z --to 2024-01-31T23:59:59Z

# Filter by project
bnerd billing projects --project PROJECT_ID

# JSON output for processing
bnerd billing overview -o json | jq '.total_cost'

TUI Equivalent

In the interactive TUI (bnerd x):

  • :billing — Billing overview
  • :billing_detail — Detailed breakdown
  • :billing_pricing — Pricing information