Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stigg.io/llms.txt

Use this file to discover all available pages before exploring further.

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. List customers, retrieve subscriptions, manage entitlements, and interact with the Stigg API directly from the command line.

GitHub

stiggio/stigg-cli
1

Install

Install the Stigg CLI via Homebrew or Go:
brew tap stiggio/tools
brew 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 command
stigg 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 customers
stigg v1:customers list

# Retrieve a specific subscription
stigg v1:subscriptions retrieve --id sub-abc123

# Check a customer's entitlement
stigg v1:entitlements check --customer-id cust-001 --feature-id feature-api-calls

Common commands

CommandDescription
stigg v1:customers listList all customers in the current environment
stigg v1:customers retrieveGet details for a specific customer
stigg v1:subscriptions listList subscriptions, optionally filtered by customer
stigg v1:subscriptions retrieveGet full details for a subscription
stigg v1:entitlements checkCheck a customer’s access to a specific feature
stigg v1:plans listList all plans in the product catalog
Run stigg --help for the full command reference, or stigg v1:<resource> --help for flags on a specific resource.

Global flags

FlagDescription
--api-keyStigg API key (overrides STIGG_API_KEY)
--helpShow command usage
--debugEnable debug logging, including HTTP request/response details
--version, -vShow the CLI version
--base-urlUse a custom API backend URL
--formatOutput format: auto, explore, json, jsonl, pretty, raw, yaml
--format-errorOutput format for errors: auto, explore, json, jsonl, pretty, raw, yaml
--transformTransform output using GJSON syntax
--transform-errorTransform error output using GJSON syntax