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.

flow secret set NAME [VALUE] [flags]

Examples


  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

      --file string     File to read the secret's value from
  -h, --help            help for set
  -o, --output string   Output format. One of: yaml, json, or tui.
  -V, --vault string    Vault name to use instead of the current vault.

Options inherited from parent commands

  -L, --log-level string   Log verbosity level (debug, info, fatal) (default "info")
      --sync               Sync flow cache and workspaces

SEE ALSO