Skip to Content
CLIConfiguration

Configuration

Config File

The CLI stores configuration in a JSON file at:

~/.expunct/config.json

Format

{ "api_key": "your_api_key", "base_url": "https://api.expunct.ai", "tenant_id": "your-tenant-id" }
FieldDescription
api_keyYour API key (starts with pk_live_ or pk_test_)
base_urlAPI base URL (default: https://api.expunct.ai)
tenant_idTenant ID for multi-tenant setups

Environment Variables

You can override any config file value with an environment variable:

VariableDescription
EXPUNCT_API_KEYAPI key (overrides api_key in config file)
EXPUNCT_BASE_URLAPI base URL (overrides base_url in config file)
EXPUNCT_TENANT_IDTenant ID (overrides tenant_id in config file)
export EXPUNCT_API_KEY=pk_live_... export EXPUNCT_BASE_URL=https://api.expunct.ai export EXPUNCT_TENANT_ID=your-tenant-id

Priority Order

Configuration values are resolved in the following order (highest priority first):

  1. Environment variables — always take precedence
  2. Config file~/.expunct/config.json

Config Management Commands

# Set a value expunct config set api_key YOUR_API_KEY # Get a value expunct config get base_url # Show all values expunct config show # Print config file path expunct config path

See Commands for the full config command reference.