Skip to content

CLI Overview

CommandDescription
envpkt initGenerate an envpkt.toml template
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.toml in the current working directory
  3. Search upward through parent directories

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.