Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

ProgramWhat it doesReference
drusite-serverThe server: serve, migrate, check a config, make and recover accounts, make master keysdrusite-server
drusite agentThe agent device: enroll, run, statusdrusite agent

Common tasks

ToRun
Check a config without starting anythingdrusite-server check-config
Make the first accountdrusite-server account create you@example.com
Let someone back indrusite-server account recover them@example.com
Make a master keydrusite-server keys generate
Migrate the database as its own stepdrusite-server migrate
Start an agent device the first timedrusite agent run --address … --server … --code …

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

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.