clavis secrets set
Create or update a secret (VALUE omitted prompts, - reads stdin)
sh
clavis secrets set KEY [VALUE] [flags]Create or update a secret. Leave out VALUE to type it at a hidden prompt (it stays out of your shell history), or pass - to read it from standard input.
Examples
Prompt for the value
sh
clavis secrets set DATABASE_URLFrom a file
sh
clavis secrets set TLS_KEY - < key.pemA plain variable with a change note
sh
clavis secrets set FEATURE_FLAG true --kind variable --message "enable beta"Flags
--comment string- comment shown in the UI
--kind string- secret, variable, or file Default:
secret --message string- why this changed (shown in history)
--yes- skip production confirmation
Details
Kinds: secret (masked, audited reads), variable (non-sensitive config) and file (written to a temporary file by clavis run --mount). Writing to production asks you to confirm; pass --yes in scripts.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command