> AI agents: this is one page from Mammoth Analytics documentation. The index of all pages as Markdown is https://docs.mammoth.io/llms.txt. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get Markdown.

# mammoth billing

> All 27 mammoth billing commands, each with its blast radius, confirmation policy and backing Python SDK method.

> GENERATED from `mammoth schema list` and `mammoth capability list` (mammoth-cli 2.2.96, released 2026-10-22)—do not edit; run `npm run docs:capabilities`.

27 commands, grouped by blast radius.

"Off a terminal" is what a command's confirmation policy requires when nothing can answer a prompt, as in an agent or CI run: `--yes`, plus `--confirm` with the exact target for `confirm_target` commands. `TARGET` stands for the id or name the command acts on; the CLI's `confirmation_required` error names it.

The SDK symbol and API operation come from `mammoth capability list`. A command that list does not map to one shows — in both columns; `mammoth schema get <command.id>` describes any command in full.

## Destructive

| Command | Scope | Blast radius | Confirmation | Off a terminal | Wait | Pagination | SDK symbol | API operation |
|---|---|---|---|---|---|---|---|---|
| `mammoth billing stripe held-change cancel` | `workspace` | Destructive | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_held_change_cancel` | `POST /workspaces/{workspace_id}/subscription/held-change/cancel` (CancelHeldChange) |

## High impact

| Command | Scope | Blast radius | Confirmation | Off a terminal | Wait | Pagination | SDK symbol | API operation |
|---|---|---|---|---|---|---|---|---|
| `mammoth billing hosted-page` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.hosted_page` | `POST /workspaces/{workspace_id}/subscription_v1/hosted-page` (FetchHostedPage) |
| `mammoth billing invoice charge` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.invoice_charge` | `POST /workspaces/{workspace_id}/invoices/charge` (ChargeWorkspaceInvoices) |
| `mammoth billing stripe cancel` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_cancel` | `POST /workspaces/{workspace_id}/subscription/cancel` (CancelWorkspaceSubscription) |
| `mammoth billing stripe checkout-url` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_checkout_url` | `POST /workspaces/{workspace_id}/subscription/create-checkout` (CreateCheckoutUrl) |
| `mammoth billing stripe create` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_create` | `POST /workspaces/{workspace_id}/subscription` (CreateWorkspaceSubscription) |
| `mammoth billing stripe end-trial` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_end_trial` | `POST /workspaces/{workspace_id}/subscription/end-trial` (EndTrialAndStartSubscription) |
| `mammoth billing stripe payment-method delete` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_payment_method_delete` | `DELETE /workspaces/{workspace_id}/subscription/payment-methods/{payment_method_id}` (DeletePaymentMethod) |
| `mammoth billing stripe payment-method set-default` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_payment_method_set_default` | `POST /workspaces/{workspace_id}/subscription/payment-methods/default` (SetDefaultPaymentMethod) |
| `mammoth billing stripe portal-url` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_portal_url` | `POST /workspaces/{workspace_id}/subscription/customer-portal` (CreateCustomerPortalUrl) |
| `mammoth billing stripe resume` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_resume` | `POST /workspaces/{workspace_id}/subscription/resume` (ResumeWorkspaceSubscription) |
| `mammoth billing stripe retry-payment` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_retry_payment` | `POST /workspaces/{workspace_id}/subscription/retry-payment` (RetryPayment) |
| `mammoth billing stripe storage set` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_storage_update` | `PUT /workspaces/{workspace_id}/subscription/storage` (UpdateSubscriptionStorage) |
| `mammoth billing stripe sync` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_sync` | `POST /workspaces/{workspace_id}/subscription/sync` (SyncSubscription) |
| `mammoth billing subscription update` | `workspace` | High impact | `confirm_target` | `--yes --confirm TARGET` | `not_async` | `none` | `mammoth.api.billing.BillingAPI.subscription_update` | `PATCH /workspaces/{workspace_id}/subscription_v1` (UpdateSubscriptionDetail) |

## Benign mutation

| Command | Scope | Blast radius | Confirmation | Off a terminal | Wait | Pagination | SDK symbol | API operation |
|---|---|---|---|---|---|---|---|---|
| `mammoth billing stripe recheck-limits` | `workspace` | Benign mutation | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_recheck_limits` | `POST /workspaces/{workspace_id}/subscription/recheck-limits` (RecheckWorkspaceLimits) |

## Read

| Command | Scope | Blast radius | Confirmation | Off a terminal | Wait | Pagination | SDK symbol | API operation |
|---|---|---|---|---|---|---|---|---|
| `mammoth billing chargebee-plan` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.chargebee_plan` | `GET /workspaces/{workspace_id}/chargebee-plan` (GetChargebeePlan) |
| `mammoth billing invoice list` | `workspace` | Read | `none` | — | `not_async` | `single_page` | — | — |
| `mammoth billing stripe get` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_get` | `GET /workspaces/{workspace_id}/subscription` (GetWorkspaceSubscription) |
| `mammoth billing stripe held-change get` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_held_change_get` | `GET /workspaces/{workspace_id}/subscription/held-change` (GetHeldChange) |
| `mammoth billing stripe history` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_history` | `GET /workspaces/{workspace_id}/subscription/billing-history` (GetWorkspaceBillingHistory) |
| `mammoth billing stripe payment-method list` | `workspace` | Read | `none` | — | `not_async` | `single_page` | `mammoth.api.billing.BillingAPI.stripe_payment_method_list` | `GET /workspaces/{workspace_id}/subscription/payment-methods` (GetPaymentMethods) |
| `mammoth billing stripe preview-invoice` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_preview_invoice` | `GET /workspaces/{workspace_id}/subscription/preview-invoice` (PreviewInvoice) |
| `mammoth billing stripe status` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_status` | `GET /workspaces/{workspace_id}/subscription/status` (GetWorkspaceSubscriptionStatus) |
| `mammoth billing stripe upcoming-invoice` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_upcoming_invoice` | `GET /workspaces/{workspace_id}/subscription/upcoming-invoice` (GetUpcomingInvoice) |
| `mammoth billing stripe usage` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.stripe_usage` | `GET /workspaces/{workspace_id}/subscription/usage` (GetWorkspaceUsage) |
| `mammoth billing subscription get` | `workspace` | Read | `none` | — | `not_async` | `none` | `mammoth.api.billing.BillingAPI.subscription_get` | `GET /workspaces/{workspace_id}/subscription_v1` (GetWkspSubscriptionDetail) |

---
Source: https://docs.mammoth.io/build/cli/billing.md · Updated: 2026-10-22