Skip to content

fnox env ​

  • Usage: fnox env [FLAGS]

Print the environment fnox would give a command, as JSON

For tools that start processes themselves, such as mise. Prints one line of JSON describing what fnox exec would do: variables to remove, then to set, then files to write for as_file secrets. The output contains secret values in plain text, so keep it out of logs.

--json is required. When resolution fails, fnox prints a JSON error document to stdout and exits 1. --describe lists keys and where each may be injected without resolving anything.

Flags ​

  • --describe — List keys and where each may be injected, without resolving anything

  • --for <SCOPE> — Where the environment will be used: exec or shell

    Choices: exec, shell

    Default: exec

  • --json — Print JSON (required)

  • --keys <KEY> — Only these keys, plus the secrets they depend on; repeat or comma-separate

  • -h --help — Print help

Examples ​

Print the environment fnox exec would use

sh
fnox env --json

Resolve only some keys

sh
fnox env --json --keys DATABASE_URL,STRIPE_KEY

Print what shell integration would load

sh
fnox env --json --for shell

List keys without resolving values

sh
fnox env --json --describe

See also ​

MIT LicenseCopyright © 2026jdx.dev