Skip to main content
Commands follow one shape:
Every command answers --help with its full flag list. Four rules apply everywhere:
  • Flags are API fields. A snake_case field becomes a --kebab-case flag. Nested fields carry their parent as a prefix: billing_configuration.payment_provider is --billing-configuration-payment-provider.
  • Objects and arrays take JSON. --metadata '[{"key":"tier","value":"gold","display_in_invoice":false}]'.
  • --input takes the whole body. Inline JSON or @file.json. Use it for deeply nested payloads such as plan charges. The body is wrapped exactly as the API expects.
  • Identifiers are positional, and their kind depends on the resource. Passing the wrong kind returns a not-found error that names the resource type, exit code 4.

Output on these pages

The right column shows what each command prints. Creates and updates print the identifier block by default. Reads print the full resource, shown here as --output json because that is the form to script against. Response bodies follow the Lago API schema, so the API reference documents every field. The global flags (--output, --query, --dry-run, --confirm, --profile, --mode), exit codes, pagination, and safety gates are covered in the Lago CLI overview.

Command groups

Setup and diagnostics

init, whoami, doctor, version, upgrade, completion

Helpers

api, docs, alias, seed, fixtures, logs tail

Billable metrics

Define what you meter.

Plans

Plans, charges, fixed charges, filters, metadata.

Features and entitlements

Features, privileges, plan entitlements, subscription overrides.

Customers

Customers, current and past usage, portal and checkout URLs.

Subscriptions

Assign, override, alert, terminate.

Events

Send one, stream NDJSON, batch, estimate.

Invoices

List, preview, finalize, void, download, payment URL.

Credit notes

Estimate, issue, void.

Coupons and add-ons

Discounts and one-off items.

Wallets

Prepaid credits, top-ups, alerts.

Taxes and fees

Tax rates and fee inspection.

Payments

Payments, requests, receipts, payment methods.

Webhooks

Endpoints and signature keys.

Analytics and logs

MRR, revenue, usage, audit and API logs.

Organization

Organization settings and billing entities.

Quotes and orders

Quotes, order forms, orders.