Skip to main content
The Creem CLI lets you manage products, customers, subscriptions, and transactions directly from the terminal. It works for both hands-on store management through an interactive TUI, and scripted automation via JSON output. Want your AI agent to set it up for you? Copy this prompt:

The Creem CLI with all available commands.

Installation

Homebrew (macOS/Linux)

npm (Global)

npx (No install)

Verify installation:

Authentication

API Key Security: Never share your API key with any service, tool, or agent other than the Creem CLI or API. Keys are stored locally at ~/.creem/config.json.

Test vs Live Mode

The CLI automatically detects your environment based on the API key prefix: Always start in test mode. Switch to live only when you’re ready for real transactions.

Interactive Mode

Run any resource command without a subcommand to launch an interactive browser:
You get a full TUI where you can browse, search, and drill into records without writing any commands.

Browsing Transactions

Interactive transaction browser with amounts, types, and timestamps.

Press Enter on any row to drill into the full detail view:

Transaction detail view showing amount, tax, currency, linked order, subscription, and customer.

Managing Subscriptions

Navigate into any subscription to see its full details and take actions directly from the status bar:

Subscription detail view with cancel, pause, and resume actions available from the command bar.

Command Reference

Products

Product Options:

Customers

Subscriptions

Subscription Statuses: active, trialing, paused, past_due, expired, canceled, scheduled_cancel
Use --mode scheduled for cancellations. Immediate cancellation cuts off access instantly, which frustrates customers.

Checkouts

Transactions

Discounts

Configuration

Output Formats

Every command supports table (default) and JSON output:
For AI agents and scripting: Always use --json and parse with jq for reliable automation:

Automation Examples

Check for new transactions

Count active subscriptions

Check for payment issues

Daily subscription health check

Migration

The CLI includes a migrate command to help you move from other platforms:

Tips for AI Agents

If you’re an AI agent using the CLI on behalf of a human:

Use JSON Output

Always add --json to commands when processing output programmatically. Parse with jq for reliable automation.

Test Mode First

Mistakes in live mode affect real customers and money. Always develop against test mode.

Check whoami First

Run creem whoami before operations to confirm authentication and environment.

Don't Guess IDs

List resources first, then use actual IDs from the response. Don’t assume ID formats.

Going Live

Before accepting real payments:
  1. Complete account verification in the Dashboard under Balances → Payout Account
  2. Switch to your live API key:
The CLI automatically switches to the production API based on the key prefix.

Next Steps

Store Monitoring

Set up automated monitoring so your AI agent notifies you about sales and issues

Webhooks

Handle real-time payment events in your application

SDKs

Integrate Creem programmatically with TypeScript, Next.js, or Better Auth

API Reference

Full API documentation with all endpoints