fnox import
- Usage:
fnox import <FLAGS> [FORMAT] - Aliases:
im
Import secrets from various sources
Arguments
[FORMAT]— Import source formatChoices:
env,json,yaml,tomlDefault:
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 --forceRelated
- Import and export
- Global options, including profile selection and non-interactive mode.