clavis secrets generate
Generate a random value and store it
sh
clavis secrets generate KEY [flags]Generate a random value and store it, without the value ever passing through your clipboard.
Examples
sh
clavis secrets generate SESSION_KEY --type password --length 48
clavis secrets generate RELEASE_ID --type uuidFlags
--kind string- secret, variable, or file Default:
secret --length int- length for password/apikey/hex/base64 types Default:
32 --message string- why this changed Default:
Generated --type string- password, apikey, hex, base64, uuid, jwt, ed25519, or rsa Default:
password --yes- skip production confirmation
Details
Types: password, apikey, hex, base64, uuid.
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