| name | creem-cli |
| description | Creem CLI command reference — manage SaaS payments, subscriptions, and customers from terminal |
Creem CLI Reference
Use creem CLI to manage your Creem store. All commands support --json for machine-readable output.
Auth & Config
creem login --api-key <key>
creem logout
creem whoami
creem config show
creem config set environment test|live
creem config set output_format json|table
Products
creem products list [--page N] [--limit N]
creem products get <id>
creem products create --name <name> --price <cents> --billing-type recurring|onetime [--billing-period every-month|every-year|once]
creem products
Subscriptions
creem subs list [--status active|trialing|paused|past_due|expired|canceled|scheduled_cancel] [--page N]
creem subs get <id>
creem subs cancel <id> [--mode scheduled|immediate]
creem subs pause <id>
creem subs resume <id>
creem subs
Customers
creem customers list [--page N] [--limit N]
creem customers get <id>
creem customers get --email <email>
creem customers billing <id>
creem customers
Checkouts
creem checkouts create --product <id> [--success-url <url>]
creem checkouts get <id>
Transactions
creem txn list [--limit N] [--page N] [--customer <id>] [--product <id>]
creem txn get <id>
creem txn
Discounts
creem discounts get <id>
creem discounts get --code <code>
Migration
creem migrate lemon-squeezy
creem migrate lemon-squeezy --dry-run
creem migrate lemon-squeezy --json > plan.json
creem migrate lemon-squeezy --exclude-discounts
Safety Rules
- All amounts are in minor units (cents): 2900 = $29.00
- Test keys start with
creem_test_, live keys with creem_
- Default environment is
test — always verify with creem whoami
- Use
--json to suppress spinner text in scripts
- Never expose API keys in chat or logs
jq Patterns
creem subs list --status active --json | jq '[.items[] | .product.price] | add / 100'
creem products list --json | jq -r '.items[] | [.name, "$\(.price/100)", .billingPeriod] | @tsv'
creem checkouts create --product <id> --success-url <url> --json | jq -r '.checkoutUrl' | pbcopy