Skip to content

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.

VariableDescription
PAKYAS_API_KEYAPI key (pk_live_...). Overrides stored credentials unless --ignore-env is passed. Not needed with --public-id.
PAKYAS_PUBLIC_IDCheck public ID for ping and monitor (same as --public-id). No API key needed. Takes precedence over a slug argument.
PAKYAS_ORGOrganization 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_PROJECTProject 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.

VariableDefaultDescription
PAKYAS_CONFIG_DIRplatform defaultDirectory 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~/.configLinux only: the default config directory becomes $XDG_CONFIG_HOME/pakyas.
PAKYAS_FORMATtableOutput format: table, json, ndjson, or yaml.
PAKYAS_DISPLAY_TZlocalTimezone for timestamp display: local or utc.
PAKYAS_TIMEbothTime display mode: relative, absolute, or both.
NO_COLORunsetDisable colored output.
PAKYAS_NO_UPDATE_CHECKunsetDisable the background update check.
CIunsetWhen set to any value, the background update check is skipped.
API_URLhttps://api.pakyas.comAPI base URL.
PING_URLhttps://ping.pakyas.comPing base URL.
VariableDefaultDescription
PAKYAS_NO_EXTERNALunsetDon’t notify external monitors (same as --no-external).
PAKYAS_EXTERNAL_TIMEOUT_MS5000Timeout for each external monitor request.
PAKYAS_MIGRATION_MODEunsetmonitor only: keep the job’s exit code when Pakyas fails but an external monitor succeeds.
PAKYAS_HEALTHCHECKS_IDunsetmonitor only: healthchecks.io check UUID.
HEALTHCHECKS_ENDPOINThttps://hc-ping.comCustom healthchecks.io endpoint.
PAKYAS_CRONITOR_KEYunsetmonitor only: Cronitor monitor key.
CRONITOR_API_KEYunsetCronitor API key, for --cronitor-key and config-file Cronitor targets.
EXTERNAL_WEBHOOK_URLunsetWebhook notified when external_monitors.toml has no [targets.webhook].

See External Monitors for how these are combined with the config file.

Terminal window
# CI job: ping by slug with only an API key
export PAKYAS_API_KEY=pk_live_xxxxx
export PAKYAS_NO_UPDATE_CHECK=1
pakyas monitor nightly-backup -- ./backup.sh
# Cron or CI without any API key
export PAKYAS_PUBLIC_ID=550e8400-e29b-41d4-a716-446655440000
pakyas monitor --public-id "$PAKYAS_PUBLIC_ID" -- ./backup.sh
# Interactive defaults
export PAKYAS_PROJECT=production
export PAKYAS_FORMAT=json
export PAKYAS_TIME=relative
export NO_COLOR=1