Auth precedence
Authentication is resolved in this order, highest priority first:- CLI flag —
--token <value>on any command - Environment variable —
ZOMBIE_TOKEN - Stored credentials — written by
zombiectl loginto~/.config/zombiectl/credentials
ZOMBIE_TOKEN in CI so no interactive login is needed. Use --token for one-off overrides without touching stored credentials.
API URL precedence
- CLI flag —
--api https://... - Environment variable —
ZOMBIE_API_URL .env.local— dev fallback file in the current directory- Built-in default —
https://api.usezombie.com
Environment variables
| Variable | Purpose | Default |
|---|---|---|
ZOMBIE_API_URL | API base URL | https://api.usezombie.com |
ZOMBIE_TOKEN | Auth token (for CI and scripts) | (from zombiectl login) |
CI usage
In CI environments, setZOMBIE_TOKEN from your secrets manager and use --no-input for non-interactive operation: