Environment Variables
The CLI reads four environment variables. Command-line flags take precedence over all of them.
| Variable | Description | Default |
|---|---|---|
INKOG_API_KEY | API key for cloud scans. If unset, the CLI looks in ~/.inkog/config.json (saved on first run). | None |
INKOG_SERVER_URL | Override the API endpoint, for self-hosted deployments | https://api.inkog.io |
CI | When set, spinners and interactive prompts are disabled. Most CI platforms set it automatically. | Auto-detected |
NO_COLOR | Disables colored output (same as -no-color) | Unset |
Output format, policy, severity, and paths are flags only. See Configuration.
Priority Order
- Command-line flags (highest)
- Environment variables
~/.inkog/config.json(API key only)- Defaults
Examples
Local development
export INKOG_API_KEY="sk_live_..."
inkog .Self-hosted server
export INKOG_SERVER_URL=https://inkog.internal.example.com
export INKOG_API_KEY="sk_live_..."
inkog .CI pipeline
# CI=true is set by GitHub Actions, GitLab CI, CircleCI, Jenkins, and Buildkite.
INKOG_API_KEY="$INKOG_API_KEY" inkog -path . -output sarif > inkog.sarifPlain output for logs
NO_COLOR=1 inkog . > scan.logLast updated on