shc vault export
shc vault export
Section titled “shc vault export”export secrets to an encrypted bundle
Synopsis
Section titled “Synopsis”Export secrets to a password-encrypted bundle. When --password is omitted the command prompts for one (with confirmation). Narrow the export with the --tenant/--stack/--environment filters; --bundle-format picks the payload encoding (yaml or json). Use ”-” as the output file to write the encrypted bundle to stdout.
shc vault export <output-file> [flags]Examples
Section titled “Examples” shc vault export secrets.enc shc vault export myblog.enc -s myblog -e default shc vault export - -s postgres -P s3cret > postgres-secrets.encOptions
Section titled “Options” --bundle-format string bundle payload encoding: yaml|json (default "yaml") -e, --environment string environment filter -h, --help help for export -P, --password string export password (prompts when empty) -s, --stack string stack filter -t, --tenant string tenant filterOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) --password-file string read the vault password from a file (mode 0600 expected); use '-' to read stdin. Takes precedence over --password and never puts the secret in argv -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc vault - manage secrets and credentials
shc@docs:~$