Environment Variables
Every setting the pakyas CLI reads from the environment. A command-line flag beats the environment variable, which beats config.toml, which beats the built-in default. See CLI Configuration for details.
Boolean variables accept 1, true, yes, or on; empty, 0, false, no, and off mean off.
Authentication and Scope
Section titled “Authentication and Scope”| Variable | Description |
|---|---|
PAKYAS_API_KEY | API key (pk_live_...). Overrides stored credentials unless --ignore-env is passed. Not needed with --public-id. |
PAKYAS_PUBLIC_ID | Check public ID for ping and monitor (same as --public-id). No API key needed. Takes precedence over a slug argument. |
PAKYAS_ORG | Organization ID or name (same as --org). Optional: without it, the CLI uses the saved active organization, or the organization the API key belongs to. |
PAKYAS_PROJECT | Project ID, slug, or name (same as --project). Used by check create and to filter check list. |
With only PAKYAS_API_KEY set, pakyas ping <slug>, pakyas monitor <slug> -- ..., and pakyas check list work without any other configuration.
CLI Behavior
Section titled “CLI Behavior”| Variable | Default | Description |
|---|---|---|
PAKYAS_CONFIG_DIR | platform default | Directory for config.toml, credentials.json, and caches. Defaults: macOS ~/Library/Application Support/com.pakyas.pakyas/, Linux ~/.config/pakyas/, Windows %APPDATA%\pakyas\pakyas\config\. |
XDG_CONFIG_HOME | ~/.config | Linux only: the default config directory becomes $XDG_CONFIG_HOME/pakyas. |
PAKYAS_FORMAT | table | Output format: table, json, ndjson, or yaml. |
PAKYAS_DISPLAY_TZ | local | Timezone for timestamp display: local or utc. |
PAKYAS_TIME | both | Time display mode: relative, absolute, or both. |
NO_COLOR | unset | Disable colored output. |
PAKYAS_NO_UPDATE_CHECK | unset | Disable the background update check. |
CI | unset | When set to any value, the background update check is skipped. |
API_URL | https://api.pakyas.com | API base URL. |
PING_URL | https://ping.pakyas.com | Ping base URL. |
ping and monitor
Section titled “ping and monitor”| Variable | Default | Description |
|---|---|---|
PAKYAS_NO_EXTERNAL | unset | Don’t notify external monitors (same as --no-external). |
PAKYAS_EXTERNAL_TIMEOUT_MS | 5000 | Timeout for each external monitor request. |
PAKYAS_MIGRATION_MODE | unset | monitor only: keep the job’s exit code when Pakyas fails but an external monitor succeeds. |
PAKYAS_HEALTHCHECKS_ID | unset | monitor only: healthchecks.io check UUID. |
HEALTHCHECKS_ENDPOINT | https://hc-ping.com | Custom healthchecks.io endpoint. |
PAKYAS_CRONITOR_KEY | unset | monitor only: Cronitor monitor key. |
CRONITOR_API_KEY | unset | Cronitor API key, for --cronitor-key and config-file Cronitor targets. |
EXTERNAL_WEBHOOK_URL | unset | Webhook notified when external_monitors.toml has no [targets.webhook]. |
See External Monitors for how these are combined with the config file.
Example
Section titled “Example”# CI job: ping by slug with only an API keyexport PAKYAS_API_KEY=pk_live_xxxxxexport PAKYAS_NO_UPDATE_CHECK=1pakyas monitor nightly-backup -- ./backup.sh
# Cron or CI without any API keyexport PAKYAS_PUBLIC_ID=550e8400-e29b-41d4-a716-446655440000pakyas monitor --public-id "$PAKYAS_PUBLIC_ID" -- ./backup.sh
# Interactive defaultsexport PAKYAS_PROJECT=productionexport PAKYAS_FORMAT=jsonexport PAKYAS_TIME=relativeexport NO_COLOR=1