Skip to main content

Auth precedence

Authentication is resolved in this order, highest priority first:
  1. CLI flag--token <value> on any command
  2. Environment variableZOMBIE_TOKEN
  3. Stored credentials — written by zombiectl login to ~/.config/zombiectl/credentials
A value at a higher level always wins. Use ZOMBIE_TOKEN in CI so no interactive login is needed. Use --token for one-off overrides without touching stored credentials.

API URL precedence

  1. CLI flag--api https://...
  2. Environment variableZOMBIE_API_URL
  3. .env.local — dev fallback file in the current directory
  4. Built-in defaulthttps://api.usezombie.com

Environment variables

VariablePurposeDefault
ZOMBIE_API_URLAPI base URLhttps://api.usezombie.com
ZOMBIE_TOKENAuth token (for CI and scripts)(from zombiectl login)

CI usage

In CI environments, set ZOMBIE_TOKEN from your secrets manager and use --no-input for non-interactive operation:
export ZOMBIE_TOKEN="$ZOMBIE_SECRET"
zombiectl runs list --no-input --json