RevKeenDocs
CLI

RevKeen CLI

Use the RevKeen command-line client for common billing, payments, and operations workflows

The RevKeen CLI is a terminal client for common operator and developer workflows. It ships from the same monorepo as the public API and SDKs and covers billing, customer, payment, webhook, automation, and reporting flows.

Source: packages/cli

The CLI uses a flag-driven command model (revkeen invoices --list), not nested subcommands. See the command reference → for every flag and prompt.

Install

npm install -g @revkeen/cli
pnpm add -g @revkeen/cli
npx @revkeen/cli --help
pnpm --filter @revkeen/cli dev

Verify the install:

revkeen --help

Quick start

# 1. Export an API key
export REVKEEN_API_KEY=rk_live_your_api_key

# 2. List customers
revkeen customers --list

# 3. Inspect a specific invoice
revkeen invoices --get inv_01HT...

# 4. Start an interactive create flow
revkeen checkout --create

How the CLI is shaped

revkeen <command> [mode flag] [arguments]

Running revkeen with no arguments opens an interactive picker for the main command groups. Each command uses one or more mode flags:

revkeen customers --list
revkeen invoices --create
revkeen subscriptions --cancel sub_01HT...
revkeen automations --approvals

Commands at a glance

CommandPurposeDetails
customersInspect, create, and update customers--list, --get, --create, --update
productsManage the product catalog--list, --get, --create
pricesManage pricing--list, --get, --create
subscriptionsView and cancel subscriptions--list, --get, --cancel
invoicesFull invoice lifecycle--list, --get, --create, --finalize, --send, --void
paymentsPayment intent workflows--list, --get, --create, --capture, --cancel
refundsIssue full or partial refunds--list, --get, --create
ordersFull order lifecycle--list, --get, --create, --pay, --fulfill, --cancel
webhooksManage webhook endpoints--list, --create, --delete
entitlementsCheck customer entitlements--list, --check
integrationsIntegration health and sync--list, --get, --sync
automationsAutomation runs and approvals--list, --get, --run, --approvals, --approve, --reject
analyticsRead-only reporting--mrr, --revenue, --ar-aging, --dso, --ltv
checkoutCreate checkout sessions--create
terminalTerminal / POS devices--devices, --payments, --pay (not yet public)

What the CLI is good at today

  • Fast inspection — invoice, customer, payment, and order lookups
  • Interactive creation — invoices, refunds, checkout sessions, webhook endpoints
  • Operator tasks — automation approvals, integration syncs, analytics summaries
  • Ad hoc workflows — when a terminal prompt is faster than the dashboard

Output format

All output is human-readable tables with color-coded status badges. The CLI does not currently support --json or --format flags. For machine-readable data, use the REST API → or an SDK →.

Status colors: paid/active/succeeded (green), open/trialing/processing (blue), paused/pending (yellow), overdue (red background), void/cancelled/failed (red), draft (gray).

Recipes

Common multi-command workflows:

# Invoice lifecycle: create → finalize → send
revkeen invoices --create
revkeen invoices --finalize inv_01HT...
revkeen invoices --send inv_01HT...

# Review and approve automation actions
revkeen automations --approvals
revkeen automations --approve apr_01HT...

# Check a customer's subscriptions and entitlements
revkeen subscriptions --list
revkeen entitlements --list cus_01HT...

# Trigger an integration sync and check analytics
revkeen integrations --sync xero
revkeen analytics --mrr

See also