@stablecoin/cli
v0.1.3
Published
CLI for the Stablecoin Platform API
Maintainers
Readme
@stablecoin/cli
Scriptable CLI for the Stablecoin API surface, including payments, wallets, apps, contracts, API keys, and compliance workflows.
Install
npm install -g @stablecoin/cliConfigure
stablecoin config set-key sk_live_...
stablecoin config set-env sandboxCommon Workflows
# scaffold a new project
npx create-stablecoin-app my-app
# configure your key
stablecoin config set-key sk_live_...
# list your apps
stablecoin apps list --json
# generate + deploy a contract
stablecoin contracts launch --spec @spec.json
# check compliance queue
stablecoin compliance approvals list --my-queue
# create an API key
stablecoin api-keys create --name prod --tier professionalGlobal Flags
--jsonfor piping intojqor scripts--env sandbox|productionto override configured environment--api-key <key>for ephemeral or CI-driven auth
Config Resolution
- Primary config path:
~/.stablecoin/config.json - Upgrade fallback:
~/.stablecoinroadmap/config.json - Environment variables override file config.
Environment Variables
| Variable | Description |
| --- | --- |
| STABLECOIN_API_KEY | Bearer token for the SDK and CLI. Treat this like a secret. |
| STABLECOIN_ENV | Environment override for sandbox or production flows. |
| STABLECOIN_BASE_URL | Optional API base URL override for local or preview environments. |
Public Docs
Security Notes
- Keep
STABLECOIN_API_KEYout of source control and CI logs. - Start in sandbox before using production credentials or live payment flows.
- Review generated contracts and deployment approvals before shipping to mainnet.
- Use least-privilege API keys and rotate them when team membership changes.
