CLI reference/Server and administration
clavis admin
Instance administration
sh
clavis admin <command>Maintenance commands that work on the database and keys directly. Run them on the server (docker exec clavis clavis admin ...). Commands that change keys or restore data need the server to be stopped.
Commands
clavis admin audit2 commandsAudit log administrationclavis admin backupCreate an encrypted consistent database backupclavis admin migrate-dbCopy a SQLite database into Postgresclavis admin reset-passwordPrint a one-time password reset link for a user (no email needed)clavis admin restoreRestore an encrypted database backupclavis admin rotate-root-keyInitialise or rotate the instance root key while the server is stoppedclavis admin shamir1 commandsSplit the root key into Shamir sharesclavis admin tls-infoShow the server's HTTPS certificate and its fingerprintclavis admin unsealReconstruct the root key from Shamir sharesclavis admin verify-backupCheck that a backup can be decrypted and read, without touching the live databaseExamples
sh
docker exec clavis clavis admin reset-password you@example.com
docker exec clavis clavis admin backup --out /data/backup.encGlobal 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