Skip to content

Command line

Drusite has two command-line programs. Their reference pages are generated from the programs’ own definitions, so every flag, default and environment variable there is the code’s.

Program What it does Reference
drusite-server The server: serve, migrate, check a config, make and recover accounts, make master keys drusite-server

Common tasks

To Run
Check a config without starting anything drusite-server check-config
Make the first account drusite-server account create you@example.com
Let someone back in drusite-server account recover them@example.com
Make a master key drusite-server keys generate
Migrate the database as its own step drusite-server migrate

In the server’s image the program is the entry point, so pass the command to docker run or docker compose run:

Terminal window
docker compose run --rm drusite account create you@example.com
kubectl -n drusite exec deploy/drusite -- drusite-server account recover them@example.com

Every command reads the same config as the server: --config, or DRUSITE_CONFIG, plus any DRUSITE__… variables. See the configuration reference.