Environment Variables¶
RevenueCat CLI can be configured entirely through environment variables. This is especially useful for CI/CD pipelines, Docker containers, and automated workflows.
Available Variables¶
| Variable | Description | Example | Default |
|---|---|---|---|
RC_API_KEY |
Secret API key (overrides active profile) | sk_xxxxx |
-- |
RC_PROJECT |
Default project ID | proj_xxxxx |
-- |
RC_PROFILE |
Active auth profile name | production |
First created profile |
RC_OUTPUT |
Default output format | table |
json |
RC_DEBUG |
Enable debug logging (shows HTTP requests/responses) | true |
false |
RC_TIMEOUT |
HTTP request timeout duration | 30s |
10s |
Precedence¶
Environment variables sit in the middle of the configuration hierarchy:
- Command-line flags (highest priority)
- Environment variables
- Local
.rc.yamlfile - Active auth profile
- Built-in defaults (lowest priority)
Example¶
export RC_OUTPUT=yaml
# Uses YAML (from env var)
rc apps list
# Uses table (flag overrides env var)
rc apps list --output table
Usage Examples¶
Shell Profile¶
Add to ~/.bashrc or ~/.zshrc for persistent defaults:
Debugging¶
Enable debug mode to see full HTTP request and response details:
This outputs request URLs, headers, response status codes, and timing information. Useful for troubleshooting API errors.
Warning
Debug mode prints API responses to stderr, which may include sensitive data. Do not enable it in production logs.