Skip to main content
The Flexprice CLI puts your billing account behind a command prompt. Send usage events and see how they metered, create and inspect customers, subscriptions and invoices, and reach any API endpoint — without leaving the terminal or writing a script against the REST API first. It is built for two audiences at once: a human exploring the API interactively, and a CI job that needs stable, parseable output. Every command adapts to which one is running it.

Send usage events

Ingest events and inspect exactly how they metered.

Manage billing objects

Customers, subscriptions, invoices, plans, wallets, and more.

Script against it

Stable JSON output and documented exit codes.

Escape hatch

Raw get/post/delete for anything without a named command.

Installing the Flexprice CLI

On macOS or Linux, install the latest release:
The binary is installed to /usr/local/bin if writable, or ~/.local/bin otherwise. Make sure the install directory is on your PATH.
Confirm the install:

Upgrading the CLI

On macOS or Linux, update to the latest release:
On Windows, download the latest release. If you installed with Go, run go install github.com/flexprice/cli/cmd/flexprice@latest to upgrade. Updating preserves your configuration and stored keys.
go install ...@latest resolves through Go’s module proxy, which can take a few minutes to index a brand-new release. To install a specific version immediately, pin it: go install github.com/flexprice/cli/cmd/flexprice@v1.0.1.

Next steps with the CLI

Quickstart

Authenticate and run your first command.

Authentication

How keys, environments, and profiles fit together.

Global flags

Flags every command accepts.

Output & scripting

Exit codes and the machine-facing contract.