Install, configure, and use the Creem CLI to manage your store from the terminal. Full command reference, interactive mode, and automation examples.
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:
Copy
Read https://creem.io/SKILL.md and set up the Creem CLI for me
# Login with your API keycreem login --api-key creem_test_YOUR_KEY_HERE# Verify authenticationcreem whoami# Logoutcreem logout
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.
# List all productscreem products list# List with paginationcreem products list --page 2 --limit 10# Get a specific productcreem products get prod_XXXXX# Create a productcreem products create \ --name "Pro Plan" \ --description "Monthly pro subscription with all features" \ --price 1999 \ --currency USD \ --billing-type recurring \ --billing-period every-month
# List all customerscreem customers list# Get customer by IDcreem customers get cust_XXXXX# Get customer by emailcreem customers get --email user@example.com# Generate billing portal link (self-service for payment methods, invoices)creem customers billing cust_XXXXX
# List all subscriptionscreem subscriptions list# Filter by statuscreem subscriptions list --status active# Get subscription detailscreem subscriptions get sub_XXXXX# Cancel immediatelycreem subscriptions cancel sub_XXXXX# Cancel at period end (customer keeps access until billing period ends)creem subscriptions cancel sub_XXXXX --mode scheduled# Pause billingcreem subscriptions pause sub_XXXXX# Resume billingcreem subscriptions resume sub_XXXXX
# List all transactions (newest first)creem transactions list# List with more resultscreem transactions list --limit 50# Filter by customercreem transactions list --customer cust_XXXXX# Filter by productcreem transactions list --product prod_XXXXX# Get transaction detailscreem transactions get txn_XXXXX
# View all settingscreem config show# Switch to live modecreem config set environment live# Switch to test modecreem config set environment test# Set default output formatcreem config set output_format jsoncreem config set output_format table# Get a specific settingcreem config get environment# List all config keyscreem config list
Every command supports table (default) and JSON output:
Copy
# Per-command JSON outputcreem products list --jsoncreem customers get cust_XXXXX --json# Set JSON as global defaultcreem config set output_format json
For AI agents and scripting: Always use --json and parse with jq for reliable automation:
Copy
creem products list --json | jq '.[].id'creem customers get cust_XXXXX --json | jq '.email'creem subscriptions list --status active --json | jq 'length'