Skip to content

drusite-server

The server binary, in the ghcr.io/drusitehq/drusite-server image. With no command it serves. In the image, run a command with docker run --rm ghcr.io/drusitehq/drusite-server:1 <command>, or docker compose run --rm drusite <command> beside a Compose deployment, so it reads the same config.

drusite-server

The Drusite sync server

drusite-server [OPTIONS] [COMMAND]
Argument Environment Default What it does
-c, --config <CONFIG> DRUSITE_CONFIG The config file. Every value can also come from a DRUSITE__SECTION__KEY variable

drusite-server serve

Run the server (the default)

drusite-server serve [OPTIONS]

drusite-server migrate

Apply pending database migrations, then exit

drusite-server migrate [OPTIONS]

drusite-server check-config

Load and check the configuration, then exit

drusite-server check-config [OPTIONS]

drusite-server account

Manage accounts from the server

drusite-server account [OPTIONS] <COMMAND>

drusite-server account recover

Print a one-time sign-in link for an account that has lost its login methods

drusite-server account recover [OPTIONS] <EMAIL>
Argument Environment Default What it does
<EMAIL> (required) The account’s email address
--ttl-minutes <TTL_MINUTES> 30 How long the link works

drusite-server account create

Create an account and print its first sign-in link

drusite-server account create [OPTIONS] <EMAIL>
Argument Environment Default What it does
<EMAIL> (required) The new account’s email address. It isn’t marked verified until its owner proves it
--name <NAME> “ The name the apps show for it; its owner can change it
--ttl-minutes <TTL_MINUTES> 1440 How long the first sign-in link works

drusite-server keys

Master keys for the env and file key sources

drusite-server keys [OPTIONS] <COMMAND>

drusite-server keys generate

Print a new master key. Put it first in the key source to rotate: new workspace keys are wrapped with it. Keep the old ones after it, for the workspace keys they wrapped

drusite-server keys generate [OPTIONS]