sazabi billing
Command reference for sazabi billing.
sazabi billing — View and manage billing — usage, plans, credits, and subscribe. Subcommands: summary, usage, charges, invoices, transactions, auto-top-up, credits, plans, payment-methods.
sazabi billing
View and manage billing — usage, plans, credits, and subscribe
sazabi billing <subcommand>sazabi billing summary # Show billing plan and balance
sazabi billing plans subscribe --plan team-v1 --yes # Subscribe from the terminal
sazabi billing credits purchase --amount 50 # Buy credits
sazabi billing auto-top-up set --enable --trigger-balance 10 --amount 50 --cycle-limit 200 # Enable auto top-upsazabi billing summary
Show the billing summary for your organization
sazabi billing summary [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing summary # Show billing summary
sazabi billing summary --json # Output as JSONsazabi billing usage
Show per-dimension usage for the current or previous cycle
sazabi billing usage [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--cycle | string | No | Which cycle to report (current or previous) |
sazabi billing usage # Current cycle usage
sazabi billing usage --cycle previous # Previous cycle usage
sazabi billing usage --json # Output as JSONsazabi billing charges
Show usage charges accrued so far in the open billing cycle
sazabi billing charges [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing charges # Accrued this cyclesazabi billing invoices
List cycle-end usage invoices (the local settlement record)
sazabi billing invoices [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--limit | string | No | Maximum invoices to return (default 24, max 100) |
sazabi billing invoices # Recent usage invoices
sazabi billing invoices --limit 5 --json # Five newest, as JSONsazabi billing transactions
List credit ledger transactions
sazabi billing transactions <subcommand> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--limit | string | No | Max results per page (default 10, max 100) |
--page | string | No | Page number (1-indexed) |
sazabi billing transactions list
List credit ledger transactions
sazabi billing transactions list [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--limit | string | No | Max results per page (default 10, max 100) |
--page | string | No | Page number (1-indexed) |
sazabi billing transactions list --page 2 # List the second pagesazabi billing auto-top-up
View or configure credit auto top-up
sazabi billing auto-top-up <subcommand>sazabi billing auto-top-up get
Show the current auto top-up settings
sazabi billing auto-top-up get [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing auto-top-up get # Show current auto top-up settingssazabi billing auto-top-up set
Enable/disable and configure auto top-up
sazabi billing auto-top-up set [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--enable | boolean | No | Enable auto top-up |
--disable | boolean | No | Disable auto top-up |
--trigger-balance | string | No | Credit balance that triggers a top-up |
--amount | string | No | Currency amount to charge per top-up |
--cycle-limit | string | No | Maximum auto top-up spend per cycle |
--yes | boolean | No | Skip the confirmation prompt |
sazabi billing auto-top-up set --enable --trigger-balance 10 --amount 50 --cycle-limit 200 # Enable auto top-up
sazabi billing auto-top-up set --disable # Turn auto top-up offsazabi billing credits
Purchase credits
sazabi billing credits <subcommand>sazabi billing credits purchase
Buy a one-time amount of credits with the saved payment method
sazabi billing credits purchase [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--amount | string | No | Dollar amount of credits to purchase (e.g. 50) |
--idempotency-key | string | No | Explicit idempotency key (advanced; auto-generated otherwise) |
--yes | boolean | No | Skip the confirmation prompt |
sazabi billing credits purchase --amount 50 # Buy $50 of credits (prompts to confirm)
sazabi billing credits purchase --amount 50 --yes # Buy without a promptsazabi billing plans
View and manage subscription plans
sazabi billing plans <subcommand>sazabi billing plans list
List the self-serve plans available for checkout
sazabi billing plans list [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing plans list # List plans available for checkoutsazabi billing plans current
Show the current plan
sazabi billing plans current [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing plans subscribe
Subscribe or resubscribe through secure checkout
sazabi billing plans subscribe [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--plan | string | No | Target plan slug (see sazabi billing plans list) |
--yes | boolean | No | Skip confirmation |
--no-browser | boolean | No | Do not launch a browser; print the URL to stderr |
--wait | boolean | No | Wait for the browser handoff to complete |
sazabi billing plans preview
Preview the financial effect of switching plans
sazabi billing plans preview [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--plan | string | No | Target plan slug (see sazabi billing plans list) |
sazabi billing plans switch
Switch plans after preview and confirmation
sazabi billing plans switch [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--plan | string | No | Target plan slug (see sazabi billing plans list) |
--yes | boolean | No | Skip confirmation |
sazabi billing plans cancel
Schedule cancellation at the end of the paid period
sazabi billing plans cancel [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--yes | boolean | No | Skip confirmation |
sazabi billing plans resume
Clear a not-yet-effective cancellation
sazabi billing plans resume [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--yes | boolean | No | Skip confirmation |
sazabi billing payment-methods
View or update the saved payment method
sazabi billing payment-methods <subcommand>sazabi billing payment-methods current
Show safe current payment method metadata
sazabi billing payment-methods current [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
sazabi billing payment-methods update
Open the secure billing portal to update the payment method
sazabi billing payment-methods update [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--yes | boolean | No | Skip confirmation |
--no-browser | boolean | No | Do not launch a browser; print the URL to stderr |
--wait | boolean | No | Wait before refreshing |