envpkt env check
Check for drift between your envpkt.toml and the live shell environment. Detects both directions: TOML keys missing from env, and credential-shaped env vars not tracked in TOML.
envpkt env check [options]Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
-c, --config <path> | Path to envpkt.toml | Auto-detected |
--format <format> | Output format: table, json | table |
--strict | Exit non-zero on any drift | false |
Examples
Section titled “Examples”# Standard drift checkenvpkt env check
# JSON outputenvpkt env check --format json
# Strict mode for CIenvpkt env check --strict
# Specify config pathenvpkt env check -c path/to/envpkt.tomlDrift Types
Section titled “Drift Types”| Direction | Meaning |
|---|---|
| Missing from env | Key defined in envpkt.toml but not set in the current shell |
| Untracked in TOML | Credential-shaped env var detected but not tracked in envpkt.toml |
Use envpkt env scan --write to add untracked credentials to your config.