fnox export
- Usage:
fnox export [FLAGS] - Aliases:
ex
Export secrets in various formats
Flags
-f --format <FORMAT>— Export formatChoices:
env,shell,json,yaml,tomlDefault:
env-n --dry-run— Show what would be exported without writing to a file-o --output <OUTPUT>— Output file (default: stdout)--all— Include secrets with env = false or env = "exec" (excluded by default)--header— Include metadata comments in env and shell output-h --help— Print help
Examples
Exports contain real resolved values. JSON, YAML, and TOML wrap them in a secrets object; see the import/export guide before migrating. By default, export follows shell injection settings; --all also includes exec-only and non-injected secrets. --dry-run only suppresses a file write when --output is supplied: output to stdout still contains values.
sh
fnox export --format json
# Create a private plaintext file (POSIX shell)
umask 077
fnox export --output .envRelated
- Import and export
- Secret injection settings
- Global options, including profile selection and non-interactive mode.