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.

Install

Grab the archive for your platform from the latest release, extract it, and put the flexprice binary somewhere on your PATH.Builds are published for macOS, Linux, and Windows on both amd64 and arm64.
Confirm the install:

Upgrading

Download the new release and replace the binary, or re-run go install github.com/flexprice/cli/cmd/flexprice@latest. Either way your configuration and stored keys are untouched.
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

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.