Skip to content

fnox import

  • Usage: fnox import <FLAGS> [FORMAT]
  • Aliases: im

Import secrets from various sources

Arguments

  • [FORMAT] — Import source format

    Choices: env, json, yaml, toml

    Default: env

Flags

  • -f --force — Skip confirmation prompts
  • -g --global — Import to the global config file (~/.config/fnox/config.toml)
  • -i --input <INPUT> — Source file or path to import from (default: stdin)
  • -n --dry-run — Show what would be imported without making changes
  • -p --provider <PROVIDER> — Provider to use for encrypting/storing imported secrets (required)
  • --filter <FILTER> — Only import matching secrets (regex pattern)
  • --prefix <PREFIX> — Prefix to add to imported secret names
  • -h --help — Print help

Examples

Configure an encryption provider first. Remote storage providers are not import targets. When stdin carries the import data, use --force because stdin cannot also answer the confirmation prompt.

sh
fnox import --input .env --provider age --dry-run
fnox import --input .env --provider age
cat secrets.json | fnox import json --provider age --force
MIT LicenseCopyright © 2026jdx.dev