Command line

Every stater command for setting up, checking the database, backups, secrets, licences, sign-in rescue, security and accounting exports.

On this page

The stater binary is the server and its admin commands. Commands read the same settings as the server, so on the Linux packages run them as the stater user with the settings file loaded:

sudo -u stater sh -c 'set -a; . /etc/stater/stater.env; exec stater db doctor'

With compose, run them in a container (docker compose run --rm stater backup list); on Kubernetes, in a pod (kubectl -n stater exec deploy/stater -- stater backup run).

Server#

Command What it does
stater serve Runs the server: the API, live updates, the web app, the webhook dispatcher and the background jobs. It warns at start about settings that do not fit together. Architecture
stater configure Asks for the database, public address, listen address, licence, email and backups, writes /etc/stater/stater.env and makes the secret key (Linux packages). Every answer has a flag. Linux packages
stater openapi Prints the OpenAPI document offline. API guide

Database#

Command What it does
stater db init Makes a database and a user with only the rights Stater needs, and runs the migrations. Running it again changes nothing. Database and backups
stater db doctor [-json] [-queries] [-strict] Checks the database in plain language; exits 0 when nothing is critical, 3 when something is, 1 when it cannot run. Database and backups

Backups#

stater backup run [-to DIR] [-verify]     # back up now (to DIR only, when given)
stater backup list [-json]                # what is in the folder and bucket; works without the database
stater backup verify [-allow-unsigned] <id|latest|FILE>
stater backup restore [-force] [-yes] [-no-safety-backup | -safety-to DIR] [-into-file F | -into URL] [-allow-unsigned] <id|latest|FILE>
stater backup keygen -out FILE

Stop every Stater server before a restore. See Database and backups.

Secrets#

Command What it does
stater secrets keygen [-out FILE] Writes a new 32-byte key with mode 0600 (never overwriting a file), or prints one without -out. Secrets
stater secrets rotate Re-encrypts every saved secret with the new key, with STATER_SECRET_KEY_OLD set. Secrets
stater secrets check Prints the key id, how many secrets each key can open and whether the key check matches; exits with an error if any secret cannot be opened. Secrets

Licences#

Command What it does
stater licence install <file> Installs a licence. Plans and licences
stater licence revocations install <file> Installs a revocation list. Plans and licences
stater licence keys Lists the keys this build trusts, with their SHA-256 fingerprints. Plans and licences
stater licence show <file> Verifies and prints a licence or a revocation list. Plans and licences

Staff#

Command What it does
stater user add -role owner <username> Creates a local owner and prints a temporary password, for when nobody can sign in. Directory sign-in

Security#

Command What it does
stater security mode monitor Stops threat feeds blocking; takes effect on every replica within 30 seconds. SIEM and threat intelligence
stater security allow <address or network> Adds an entry to the allow list, such as 203.0.113.0/24. SIEM and threat intelligence
stater security status Shows the mode, the feeds, the destinations and the allow list. SIEM and threat intelligence

Accounting#

stater accounting export -from 2026-11-01 -to 2026-11-30 [-target xero] [-store S01 | -all] \
  [-kinds journals,bills,invoices] [-changes] [-record] [-out FILE|DIR]
stater accounting status [-json]

export writes the same file (or zip) Money › Accounting downloads; status prints each connection and what is waiting. See Accounting reference.