Skip to content

fnox export

  • Usage: fnox export [FLAGS]
  • Aliases: ex

Export secrets in various formats

Flags

  • -f --format <FORMAT> — Export format

    Choices: env, shell, json, yaml, toml

    Default: 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 .env
MIT LicenseCopyright © 2026jdx.dev