CLI reference/Server and administration
clavis setup-token
Print the one-time first-run setup token
sh
clavis setup-token [flags]Print the one-time token that claims a fresh server. Run it where the server's data directory is, usually inside the container. The token stops working once the owner account exists.
Examples
Docker
sh
docker exec clavis clavis setup-tokenDocker on another machine
sh
ssh root@192.168.1.20 docker exec clavis clavis setup-tokenBinary install
sh
clavis setup-token --config /etc/clavis/clavis.yamlFlags
-c, --config string- path to clavis.yaml
Details
To skip this step, set CLAVIS_SETUP_TOKEN (24+ characters) before the first start, and optionally CLAVIS_SETUP_OWNER_EMAIL to reserve the owner account.
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