RevKeenDocs
CLI

RevKeen CLI

Install and use the RevKeen command-line client for billing, payments, and operations workflows

The RevKeen CLI is a single, self-contained binary for operator and developer workflows — customers, invoices, subscriptions, payments, refunds, webhooks, and reporting, all from your terminal. Its commands are generated from the RevKeen API contract, so they stay in sync with the API.

The CLI uses a subcommand model (revkeen invoices list), not flags like --list. See the command reference →.

Install

brew install revkeen/tap/revkeen
npm install -g @revkeen/cli-binary
curl -fsSL https://cli.revkeen.com/install.sh | sh

All three install the same revkeen binary — pick the one that fits your environment. Verify the install:

revkeen --version
revkeen --help

Authentication

Authenticate once with either an interactive login or an API key:

# Interactive OAuth device login (recommended for humans)
revkeen auth login

# Or store an API key (recommended for scripts/CI)
revkeen config set api-key rk_live_your_api_key
# Or via environment variable
export REVKEEN_API_KEY=rk_live_your_api_key

Configuration is stored in ~/.revkeen/config.toml. See CLI authentication → for the full precedence and staging setup.

Quick start

revkeen customers list
revkeen customers get cus_01HT3N...
revkeen invoices list --json
revkeen analytics revenue-mrr-summary

How the CLI is shaped

revkeen <resource> <action> [arguments] [flags]

Resource commands map to the RevKeen API. Common actions are list, create, get, and update, plus resource-specific actions (e.g. invoices finalize, subscriptions cancel). Run revkeen <resource> --help to see the exact actions and flags for any resource.

Commands at a glance

Resource commands (generated from the API):

Generated from the API contract — 24 resource groups, 117 commands. Run revkeen <resource> --help for the exact actions and flags for your installed version.

GroupActions
analyticsrevenue-mrr-summary, revenue-time-series
cart-api-keysstatus, ensure, rotate
cart-sessionscreate, get, add-line-item, update-line-item, remove-line-item, toggle-add-on, apply-discount-code, set-contact, convert
checkout-sessionscreate, get, expire
credit-noteslist, create, get, void, list-lines, preview
customer-meterslist, get
customer-portalsessions-create, customer-get, subscriptions-list, subscriptions-get, subscriptions-cancel, invoices-list, invoices-get, mandates-list, mandates-reauthorize, mandates-cancel, mandates-reauthorize-send-otp, mandates-reauthorize-verify-otp
customerscreate, list, get, update, payment-rails-get, preferred-rails-get, payment-methods-list
ddmandate-requests-get, validate, preview
entitlementslist, check
eventslist, get, resend
integrationsaccounting-invoice-payment-requests-create, accounting-invoice-payment-requests-get
invoiceslist, create, get, update, margin-estimate, finalize, void, send
mandatescreate, list, get, cancel, suspend, reinstate, schedule-collection
payment-intentscreate, list, get, confirm, capture, cancel
payment-linkscreate, list, get, expire, update, deactivate, activate, archive
priceslist, create, get, update, archive
productslist, create, get, update
refundslist, create, get
storefrontproducts-list, products-get, origins-list, origins-create, origins-delete, status-get
subscriptionscreate, list, get, update, cancel
transactionslist, get
webhook-deliverieslist, get, retry
webhook-endpointslist, create, get, update, delete, rotate-secret

Operator commands (hand-written):

CommandPurpose
authlogin / logout / status
configset / list
apiRaw authenticated request to any endpoint
terminalPAX terminal pair / status / pay
webhookslisten (local forwarding) / list

Output formats

Output defaults to a human-readable table. Use the global flags for other forms:

FlagOutput
(default)Table
--jsonPretty-printed JSON
--output yaml / --output csvYAML / CSV
--agentCompact JSON, no color, errors as JSON on stderr (for tools/LLMs)

See also