The Stigg CLI is currently in public beta. Feedback and bug reports are welcome.
The Stigg CLI is a REST API wrapper for your terminal. Provision customers, manage subscriptions, report usage, check entitlements — any operation available through the Stigg API is available as a command.
GitHub
stiggio/stigg-cli
1
Install
Install the Stigg CLI via Homebrew or Go:
brew tap stiggio/toolsbrew install stigg
Requires Go 1.22 or later for the Go install. The binary is placed in your Go bin directory (default: $HOME/go/bin). If stigg isn’t found after installation, add it to your PATH:
export PATH="$PATH:$(go env GOPATH)/bin"
2
Authenticate
In the Stigg app, go to Settings > API keys and copy a key for the environment you want to use. You can provide the key in two ways:
# Set as an environment variable (recommended)export STIGG_API_KEY=<YOUR_API_KEY>stigg v1:customers list# Or pass it inline per commandstigg v1:customers list --api-key '<YOUR_API_KEY>'
For CI/CD pipelines, store the key as a secret and inject it as STIGG_API_KEY at runtime.
Never hard-code API keys in scripts or commit them to source control.
3
Start using
Query your Stigg environment directly from the terminal:
# List all customersstigg v1:customers list# Retrieve a specific subscriptionstigg v1:subscriptions retrieve --id sub-abc123# Check a customer's entitlementstigg v1:entitlements check --customer-id cust-001 --feature-id feature-api-calls
List subscriptions, optionally filtered by customer
stigg v1:subscriptions retrieve
Get full details for a subscription
stigg v1:entitlements check
Check a customer’s access to a specific feature
stigg v1:plans list
List all plans in the product catalogWrite operations
stigg v1:customers provision
Create or update a customer record
stigg v1:subscriptions provision
Subscribe a customer to a plan
stigg v1:subscriptions update
Update an existing subscription (e.g. add-on quantities)
stigg v1:subscriptions cancel
Cancel a subscription immediately or at period end
stigg v1:usage report
Report metered feature usage for a customer
stigg v1:events report
Submit a raw usage event for aggregationRun stigg --help for the full command reference, or stigg v1:<resource> --help for flags on a specific resource.