Skip to content

flow secret set

Set a secret in the current vault. If no value is provided, you will be prompted to enter one.

shell
flow secret set NAME [VALUE] [flags]

Examples

shell
flow secret set MY_TOKEN              # prompted securely
flow secret set MY_TOKEN s3cr3t       # inline value
flow secret set MY_TOKEN --from-file ./token.txt

Options

FlagTypeDescription
--filestringFile to read the secret's value from
-h, --helphelp for set
-o, --outputstringOutput format. One of: yaml, json, or tui.
-V, --vaultstringVault name to use instead of the current vault.

Options inherited from parent commands

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also