Token-based auth
In CI/CD environments, set WESTYX_TOKEN to an access token. This bypasses all OAuth flows -
no browser, no device code, no stored credentials.
When WESTYX_TOKEN is set, the CLI never reads or writes config.json. Tenant and project
must be provided via WESTYX_TENANT / WESTYX_PROJECT or --tenant / --project.
The token is never refreshed - provide a fresh token on each run.
Example: read a value in a pipeline
Example: read multiple values as JSON
Use jq to extract specific fields:
--format=plain prints one value per line with no headers. Combined with --quiet, all
affirmation messages are suppressed - only the result is printed to stdout.
Exit codes in scripts
Use exit codes to handle errors in shell scripts:
Environment variable reference