Skip to main content

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)
--force Indicates we should force the operation
--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
--no-wait Indicates we should not wait for the resource to delete (default true)
--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)
-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