Self-hosting · Command reference

Self-hosting · Reference

Command reference

What each subd command does, by what you are doing.

sudo subd <command> --help shows a command's flags for the version you have. Every command that changes something prints its plan first. Add --dry-run to see the plan without doing anything, and --verbose to see Docker's own output as each step runs.

Setting up

Command What it does
subd init Creates the configuration, the secrets and the state for a deployment
subd config Shows or changes the configuration
subd secret Lists, sets or removes a secret; a value is read from standard input
subd doctor Checks everything the deployment needs

Running it

Command What it does
subd up Writes the configuration and starts everything
subd down Stops Subduction, keeping the data
subd restart Restarts the application, the background work and the web server
subd status Shows what runs, and whether each service is ready
subd logs Shows the logs
subd probe Checks that the installation refuses what a signed-out visitor tries

Versions

Command What it does
subd check Shows what is available and what an update would do
subd install Installs a version, without starting it
subd update Moves to a newer version, backing up first
subd rollback Returns to the version before the last update, and its data

Data

Command What it does
subd backup Backs up every database
subd restore Returns the data to a backup
subd forget-unreadable Forgets stored credentials whose key is gone

Servers that can't reach us

Command What it does
subd fetch Downloads a version as one file
subd export Saves an older version's images, with Docker

Support

Command What it does
subd bundle Writes one diagnostic file to send us
subd self-update Replaces this subd with the newest