@creem_io/cli
v0.2.1
Published
Official CLI for Creem - the Stripe alternative for SaaS
Readme
Creem CLI
The official command-line tool for Creem — the Merchant of Record for SaaS and digital businesses.
Manage products, customers, subscriptions, checkouts, transactions, and discounts from your terminal.
Installation
Homebrew (macOS/Linux)
brew tap armitage-labs/creem
brew install creemnpm (Global)
npm install -g @creem_io/clinpx (No Install)
npx @creem_io/cli <command>Quick Start
# Authenticate with your API key
creem login
# Check your auth status
creem whoami
# Switch to live mode
creem config set environment liveGet your API key from the Creem Dashboard.
- Test keys start with
creem_test_ - Live keys start with
creem_
Commands
Authentication
# Login with API key (interactive)
creem login
# Login with API key (non-interactive)
creem login --api-key creem_xxxxx
# Check current authentication
creem whoami
# Logout
creem logoutConfiguration
# Show all config
creem config show
# Get a specific value
creem config get environment
# Set a value
creem config set environment live
creem config set output_format json
# List available config keys
creem config listResources
creem products— list, create, get, update productscreem customers— list, get, create customers and open billing portalscreem subscriptions— list, get, cancel, pause, resume, upgrade, updatecreem checkouts— create and get checkout sessionscreem transactions— list and inspect transactionscreem discounts— create and list discount codescreem migrate— migrate from LemonSqueezy to Creem
Run creem <command> --help for details on any command.
Global Options
--json— Output in JSON format (works with most commands)--help— Show help for any command--version— Show CLI version
Configuration
Config is stored at ~/.creem/config.json:
{
"api_key": "creem_xxxxx",
"environment": "test",
"output_format": "table"
}Environment
test— Useshttps://test-api.creem.io(default)live— Useshttps://api.creem.io
Development
This package lives inside the armitage-labs/creem monorepo and uses pnpm + turbo.
# From the repo root
pnpm install
pnpm --filter @creem_io/cli build
# Or from this directory
cd packages/cli
pnpm build # build once
pnpm dev # watch modeRun the locally built binary:
node packages/cli/dist/index.js <command>Optional: direnv
A .envrc is included that adds packages/cli/bin to your PATH, so after building you can just run creem:
brew install direnv # if not already installed
cd packages/cli
direnv allow
creem whoamiContributing
Contributions are welcome! Please open an issue or pull request at github.com/armitage-labs/creem.
License
MIT
