Skip to main content
Version: 0.4

acorn secret create

acorn secret create

Create a secret

acorn secret create [flags] SECRET_NAME


# Create secret with specific keys
acorn secret create --data key-name=value --data key-name2=value2 my-secret

# Read full secret from a file
acorn secret create --file secret.yaml my-secret

# Read key value from a file
acorn secret create --data @key-name=secret.yaml my-secret


      --data strings   Secret data format key=value or @key=filename to read from file
--file string File to read for entire secret in cue/yaml/json format
-h, --help help for create
--type string Secret type

Options inherited from parent commands

  -A, --all-namespaces      Namespace to work in
--context string Context to use in the kubeconfig file
--debug Enable debug logging
--debug-level int Debug log level (valid 0-9) (default 7)
--kubeconfig string Location of a kubeconfig file
--namespace string Namespace to work in (default "acorn")
-o, --output string Output format (json, yaml, {{gotemplate}})
-q, --quiet Output only names