Skip to main content
Version: 1.1

wf create secret generic

wf create secret generic

Creates a generic type secret

Synopsis

Lets you create generic secrets, from files, environments files and literals.

wf create secret generic [flags]

Examples


$ wf create secret generic <name> -w <workspace> [options]

# Create a secret from a file
$ wf create secret generic gke --from-file=<key>=<filename>

Options

  -d, --description DESC       A description for this secret DESC
--dry-run Shows the resource but does not apply or create (defaults: false)
--from-env-file PATH Builds a secret from the environment file, PATH
--from-file KEY=PATH Builds a secret from the key reference KEY=PATH
--from-literal strings Adds a literal to the secret `KEY=NAME
-h, --help help for generic
--type TYPE The type of secret you are creating TYPE (default "generic")

Options inherited from parent commands

      --debug              Indicates we should use debug / trace logging (default: false)
--force Used to force an operation to happen (default: false)
--no-wait Indicates we should not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table,template) (default "table")
--profile string Use a profile other than your default for this command
--show-headers Indicates we should display headers on table out (default true)
--verbose Enables verbose logging for debugging purposes (default: false)
-w, --workspace string The workspace you are operating within

SEE ALSO