CLI reference/Server and administration/admin
clavis admin rotate-root-key
Initialise or rotate the instance root key while the server is stopped
sh
clavis admin rotate-root-key [flags]Create (--init) or rotate the root key while the server is stopped. Every organization key and TOTP secret is re-encrypted, and the old key is backed up.
Examples
sh
clavis admin rotate-root-key --init
clavis admin rotate-root-key --yes
clavis admin rotate-root-key --config /etc/clavis/clavis.yamlFlags
--config string- configuration file (default: CLAVIS_CONFIG or data defaults)
--init- create the root key if it does not exist
--yes- skip the confirmation prompt
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