Skip to content

CLI Overview

CommandDescription
envpkt initGenerate an envpkt.toml template
envpkt keygenGenerate age keypair for sealing secrets
envpkt auditCheck credential health against lifecycle policies
envpkt inspectDisplay a structured view of the config
envpkt resolveResolve catalog references into a flat config
envpkt fleetScan directory tree and aggregate health
envpkt execPre-flight audit, inject secrets, run a command
envpkt env scanAuto-discover credentials from shell environment
envpkt env checkBidirectional drift detection
envpkt env exportOutput export statements for sourcing secrets
envpkt shell-hookOutput shell function for ambient warnings
envpkt mcpStart the MCP server

All commands support:

  • --help — Show help for the command
  • --version — Show envpkt version

Commands that read envpkt.toml (audit, inspect, resolve, exec, env check, env export) follow this resolution chain:

  1. Explicit -c path/to/envpkt.toml flag
  2. ENVPKT_CONFIG environment variable
  3. envpkt.toml in the current working directory
  4. ENVPKT_SEARCH_PATH (colon-separated list of candidate paths)
  5. Built-in search locations:
    • ~/.envpkt/envpkt.toml
    • OneDrive — macOS (~/OneDrive/, ~/Library/CloudStorage/OneDrive-*/), Windows ($USERPROFILE/OneDrive/, $OneDrive/), WSL (/mnt/c/Users/$USER/OneDrive/)
    • iCloud (~/Library/Mobile Documents/com~apple~CloudDocs/.envpkt/)
    • Dropbox (~/Dropbox/.envpkt/, $DROPBOX_PATH/.envpkt/)
    • Google Drive (~/Google Drive/My Drive/, ~/Library/CloudStorage/GoogleDrive-*/, $GOOGLE_DRIVE/)

When a config is loaded from outside CWD, envpkt prints the resolved path to stderr for transparency.

If a catalog field is present, it’s resolved relative to the config file’s directory.

CodeMeaning
0Healthy — all secrets pass audit
1Degraded — some secrets have warnings
2Critical — expired or missing secrets

See Exit Codes reference for details.