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

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 OAuth (PKCE or device) or an API key:

# Interactive OAuth PKCE (recommended for humans)
revkeen login

# Device grant (SSH / headless)
revkeen login --device

# API key (recommended for scripts/CI)
revkeen login --api-key
revkeen config set api-key rk_live_your_api_key
export REVKEEN_API_KEY=rk_live_your_api_key

# Per-invocation override
revkeen --api-key rk_live_your_api_key customers list

Secrets prefer the OS keyring (credentials.toml fallback). See CLI authentication → for the full precedence and staging setup.

Quick start

revkeen dashboard
revkeen customers list
revkeen customers get cus_01HT3N...
revkeen invoices list --json
revkeen analytics revenue-mrr-summary
revkeen cart status
revkeen doctor --cms sanity

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 — 25 resource groups, 118 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
invoice-line-itemslist-usage-events
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
dashboardInteractive Bubble Tea merchant dashboard (also bare revkeen on a TTY)
authlogin (API key) / logout / status
configset / list
apiRaw authenticated request to any endpoint
cartCart status, keys, origins, webhooks setup
doctorCMS health check (--cms sanity)
initScaffold or patch Sanity Cart (--cms sanity)
terminalPOS terminal commands (not implemented yet)
listen / triggerForward webhooks to localhost; send fixture events
webhookslisten alias + list helper (list → use webhook-endpoints)

Output formats

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

FlagOutput
(default)Styled table (Lip Gloss on TTY)
--jsonPretty-printed JSON
--output yaml / --output csvYAML / CSV
--agentCompact JSON, no color/TUI, errors as JSON on stderr (for tools/LLMs)

See also

On this page