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:execorshellChoices:
exec,shellDefault:
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
fnox env --jsonResolve only some keys
fnox env --json --keys DATABASE_URL,STRIPE_KEYPrint what shell integration would load
fnox env --json --for shellList keys without resolving values
fnox env --json --describe