qubit-server with no arguments serves. Every other command reads the same
environment as the server, so run it with the same variables and
volume.| Command | What it does |
qubit-server or qubit-server serve | Run the server. |
qubit-server migrate | Apply database migrations and exit. The server also migrates at startup. |
qubit-server setup-link | Print the first-run setup link again, while the server has no accounts. |
qubit-server make-admin <email> | Make an existing account a server admin. |
qubit-server rotate-secret-key | Re-encrypt server-held secrets under the current QUBIT_SECRET_KEY. See Rotating the secret key. |
qubit-server billing-plan <org-id> business|none | Give an organization the paid plan by hand, ahead of Stripe, or hand it back to Stripe with none. Only matters with billing on. |
qubit-server gen-secret | Print a fresh QUBIT_SECRET_KEY. Needs no environment. |
qubit-server healthcheck [URL] | Exit 0 if URL (default http://127.0.0.1:8787/healthz) answers 200. The image's HEALTHCHECK uses it, because the distroless image has no curl. |
qubit-server --version | Print the version. |
qubit-server --help | Print usage and the main variables. |
123docker run --rm -v qubit-data:/data \ -e QUBIT_SECRET_KEY='<your secret key>' \ ghcr.io/loopyreviews/qubit-server:<tag> setup-link
exec into the running container over a second container on the same volume,
except for rotate-secret-key, which you run while the server is stopped or quiet.