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 Debug / trace logging (default: false)
-o, --output string Output format of the resource (json,yaml,table) (default "table")
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use - to change default: wf use workspace NAME
SEE ALSO
- wf create secret - Creates managed secrets (DEPRECATED - use 'wf create platformsecret')