CLI reference/Server and administration/admin
clavis admin reset-password
Print a one-time password reset link for a user (no email needed)
sh
clavis admin reset-password EMAIL [flags]Print a one-time link that sets a new password for a user. Use it when someone, including the only owner, is locked out and the server has no email (SMTP) configured. The link is valid for 24 hours by default and the reset is recorded in the audit log.
Examples
Docker
sh
docker exec clavis clavis admin reset-password you@example.comValid for one hour
sh
clavis admin reset-password ada@example.com --valid-for 1hFlags
-c, --config string- path to clavis.yaml
--valid-for duration- how long the link stays valid (max 168h) Default:
24h
Details
Anyone with the link can set the password, so send it over a channel you trust.
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