Skip to content

mate secrets fetch

Fetch secrets from providers

Synopsis

Find every secret reference in templates, fetch the values from Bitwarden, and store them in the encrypted cache.

Every reference is fetched again, not only missing ones. With a pattern, only the item with exactly that name is fetched, or every item whose name starts with a prefix ending in '*'.

Needs the bw CLI, logged in, and an age identity to encrypt the cache with. A locked vault is unlocked for you.

mate secrets fetch [pattern] [flags]

Examples

  mate secrets fetch
  mate secrets fetch 'github*'

Options

  -h, --help   help for fetch

Options inherited from parent commands

  -c, --config string    config file (default: mate.yaml in $STATEMATE_DIR if set, else in the local config's source_dir, else in the current directory)
  -p, --profile string   override auto-detected profile

SEE ALSO