Skip to content

envpkt exec

Run a pre-flight audit, inject secrets from fnox into the environment, then execute a subprocess command.

Terminal window
envpkt exec [options] -- <command...>

| Option | Description | Default | | --------------------- | --------------------------------------- | ------------- | | -c, --config <path> | Path to envpkt.toml | Auto-detected | | --profile <profile> | fnox profile to use | — | | --skip-audit | Skip the pre-flight audit | false | | --no-check | Skip the pre-flight audit (alias) | false | | --warn-only | Warn on critical audit but do not abort | false | | --strict | Abort on any non-healthy secret | false |

Terminal window
# Audit then run
envpkt exec -- node server.js
# Skip the audit
envpkt exec --skip-audit -- npm start
# Strict mode: abort if any secret is not healthy
envpkt exec --strict -- ./deploy.sh
# Use a specific fnox profile
envpkt exec --profile staging -- node server.js
  1. Load envpkt.toml (resolve catalog if present)
  2. Run audit (unless --skip-audit)
  3. Check audit result against policy (--strict / --warn-only)
  4. Inject secrets from fnox into subprocess environment
  5. Execute the command

Requires fnox integration or sealed packets for secret injection.

If the config declares a [namespace], the subprocess receives each value under its wire name (e.g. CIV__API_KEY), matching what boot() would inject — not the logical TOML key.