The guide: Commands and flags
Reach is in development. Its packages are not published.
Taken from the programs' own --help output at this version. Flags may be written with one or two dashes (-dir or --dir). Every command can be run from any folder; paths you give are used as written.
reach-server#
reach-server <command> [flags]| Command | What it does |
|---|---|
init | Creates the configuration, keys, database and the first setup link |
run | Serves the console and the agent API (what each Reach agent, the read-only program on a machine, calls) |
setup-link | Issues a new first-owner setup link while no user exists yet |
user reset <email> | For a lost password, a lost authenticator or a pause: --password (a one-time link), --totp (set the authenticator up again), --unlock (lift a pause). See users and sign-in |
audit verify | Recomputes every organisation's audit hash chain and prints each head; exits 1 if a row was edited or removed |
tls renew | Renews the generated server certificate, keeping its key |
migrate | Applies pending database migrations (after a backup) |
migrate-store | Copies a stopped SQLite server's database into a new, empty PostgreSQL database |
demo-seed | Fills a new, empty server with a made-up organisation of 340 machines, marked as demonstration data |
version | Prints the version, in the form reach-server <version> (commit <short hash>, go<version>, schema <number>) |
reach-server init#
| Flag | Meaning | Default |
|---|---|---|
-dir | The folder to create the server's files in (required) | |
-public-url | The https address agents and people use (required) | |
-listen | The address to listen on. Anything but loopback needs every user to have set up two-step sign-in (see configuration) | 127.0.0.1:8443 |
-tls | self-signed or files | self-signed |
-cert-file, -key-file | With -tls files: the certificate chain and the private key (PEM) | |
-name | The name of the provider tenant | My organisation |
-postgres-url-file | Use PostgreSQL: a file (mode 0600) holding the postgres:// address of an empty database, instead of a SQLite file | |
-config-out | Write the configuration here instead of <dir>/server.toml (packaged installs use /etc/reach-server/server.toml) |
reach-server run, setup-link, tls renew#
Each takes -config <file> (default /etc/reach-server/server.toml). setup-link refuses once an owner exists; its link points at console_url when that is set, otherwise at public_url. run on a server.listen that is not a loopback address logs a server.users_without_second_step warning naming each active user who has no two-step sign-in yet; it still starts, and those users cannot sign in from another machine until they set it up.
reach-server user reset, audit verify#
user reset <email> [--password] [--totp] [--unlock] [-config <file>] needs at least one of the three flags; the address may come before or after them. It ends the person's sessions for --password and --totp; --totp also prints a single-use enrolment code (valid 15 minutes) that the person needs, with their password, to set up a new authenticator. It never prints a hash or a seed, and writes an audit row with the actor system / cli. audit verify [-config <file>] [-expect <tenant>=<head>]... (a tenant is one organisation on the server) prints one line per organisation (rows, head hash, time of the last row) and exits 1 with BROKEN and the row if a chain does not check out, or with MISSING if an -expect head (from an audit.anchor log line) is no longer in its chain. Both commands read the configuration, keys and database that belong to the service account: run as an ordinary user they fail with "permission denied" and print the sudo -u reach-server /usr/bin/reach-server ... command to run instead.
reach-server migrate#
| Flag | Meaning |
|---|---|
-config | The configuration file (default /etc/reach-server/server.toml) |
-dry-run | Say what would happen and change nothing |
-backup-done | PostgreSQL only: confirm you have taken a backup (pg_dump) |
See upgrade and migrate.
reach-server migrate-store#
| Flag | Meaning |
|---|---|
-config | The configuration file of the SQLite server (default /etc/reach-server/server.toml) |
-to | The new database: postgres |
-url-file | A file (mode 0600) holding the postgres:// address of the new, empty database |
reach-server demo-seed#
| Flag | Meaning |
|---|---|
-config | The configuration file of the server to fill (default /etc/reach-server/server.toml) |
Fills the server's tenant with a made-up organisation, Kestrel Freight: 340 machines (Windows PCs, Macs, Linux servers and Windows servers) with 30 days of history, AI tools and decisions, MCP servers, findings, silent machines, older agent versions and, on Windows only, AI services used from a browser. Every report goes through the server's own ingest and rules, and the same organisation comes out every time. Every console page then carries a "Demonstration data" banner.
It is for a server made only for showing Reach. It refuses a server that already has an agent or an enrolment token, with no override, and says so: make a separate server for the demonstration with reach-server init and its own data folder. It never adds a second fleet. A server holding demonstration data refuses every enrolment (demo_tenant), so a real machine never joins made-up data.
reach-agent#
reach-agent <command>| Command | What it does |
|---|---|
scan [--print] [--send] | Reads this user's AI tool configuration; prints it, sends it, or both |
enrol --token-file <file> [--force] [--machine] | Registers with a Reach server. --machine is for the service: run it as the reach-agent account |
show --last, --last-checkin, --profiles [--machine] | Prints what was last sent. --profiles (root) names the local user behind each label |
status [--machine] | Enrolment, pause flag, service socket, last activity. Without --machine, an account with no enrolment of its own is shown the machine's service, or told it cannot read it and how to see it (a standard user's case seen on one Windows 11 virtual machine in our own lab, builds of 16 to 17 November 2026 only) |
service | The always-on service (started by the service manager) |
user [--once] | The per-user collector (started at sign-in). --once submits once and exits |
pause, resume | Stop or restart all sending on this machine (root), the goodbye included. After resume a running, enrolled service tries to check in within about 30 seconds, no sooner than 4 minutes after its last check-in (the 30-second case seen on one Windows 11 virtual machine in our own lab, builds of 16 to 17 November 2026 only) |
install-service, uninstall-service | Windows zip builds only (run on one Windows 11 virtual machine in our own lab, builds of 16 to 17 November 2026 only; see Windows) |
goodbye | Tells the server that this machine is uninstalled; the server lists it as Retired and refuses its identity from then on. Run by dnf remove (Rocky) and uninstall-service --purge (Windows); an administrator can run it by hand. It gives up after 15 seconds, sends nothing while the machine is paused, and prints what is known: told; already retired; no goodbye sent (no identity, or paused); nothing sent, and why; the server did not take it and asked to wait; refused; an answer that could not be verified; or no answer. Exit 0 when the server lists the machine as retired, 1 otherwise. Not yet run on a real machine |
version | Prints the version, for example 0.1.0 |
| Flag | Command | Meaning |
|---|---|---|
-print | scan | Print the report |
-send | scan | Send the report to the server this machine is enrolled with |
-token-file | enrol | File holding the enrolment token |
-force | enrol | Replace an existing identity |
-machine | enrol, show, status | Use the service's identity and folder, not the current user's |
Agent environment variables are listed in configuration.