Command line
synaptane [--config FILE] <command> (default configuration: $SYNAPTANE_CONFIG, otherwise
./synaptane.toml). With Docker: docker compose exec app synaptane ….
synaptane --version prints the version.
| Command | What it does |
|---|---|
init [--database-url …] [--data-dir …] [--public-url …] |
Writes synaptane.toml if it does not exist, and creates the folders and the master key. Without --database-url, uses the SYNAPTANE_* variables. Never replaces an existing key. |
db upgrade |
Applies the database migrations. |
admin create --username … [--display-name …] [--email …] |
Creates a super admin. The password is prompted for, or read from SYNAPTANE_ADMIN_PASSWORD. |
admin reset-2fa --username … |
Turns off an account’s two-factor authentication, for someone who lost their phone and their recovery codes: they sign in with their password alone, then turn it on again. In the web interface, a super admin does the same from the account’s page (Administration → Accounts); this command is for the last super admin locked out. |
demo [--password …] [--source FOLDER] |
Loads the demo data: the wiki of a fictional IT team (examples/acme-wiki/ by default, or --source), in a local Git repository under data_dir/demo/. Creates what is missing (the demo super admin, the acme organization, the acme/it space), then syncs and indexes the space; run again, it recreates and overwrites nothing. The demo password is set only when the account is created: --password, otherwise SYNAPTANE_DEMO_PASSWORD, otherwise generated and shown once. Requires allow_local_repos = true (SYNAPTANE_ALLOW_LOCAL_REPOS=true) for this command, serve and worker: keep it to a disposable demo instance, since it lets an organization admin point a space at any Git folder on the server. See Demo data. |
serve [--host 127.0.0.1] [--port 8000] [--forwarded-allow-ips 127.0.0.1] |
Web, REST API and MCP. |
worker |
Background jobs: Git sync, indexing, tidy-up, webhooks, the nightly backup (backup_time, into backup_dir). |
reindex [--space org/ |
Clears the extracted text and the semantic index, then asks the worker to rebuild everything. |
doctor |
Checks the installation: key, tools, database, migrations, HTTPS, automatic backup and off-site copy (as a warning only). Exit code 1 on failure. |
check-clis [--installed-only] |
Checks, without signing in or calling the model, that the subscription CLIs (claude, codex) give the agent only Synaptane’s tools. Both are required, as in an image built with them (AGENT_CLIS=true, the Dockerfile’s default; the published image has neither); with --installed-only, a missing CLI is not an error. Exit code 1 if the contract is broken or could not be checked. See Use a Claude or ChatGPT subscription. |
backup [--output FILE|FOLDER|-] [--without-repos] [--without-key] [--offsite] |
Backup, read back before it is reported. Without --output: in $SYNAPTANE_BACKUP_DIR (/backups with Docker), otherwise the current folder; with --offsite alone, no local copy. --offsite encrypts the archive (age) and copies it to each rclone destination. Written to a hidden .part file, renamed once read back. Waits for a backup already running (twice backup_timeout_minutes at most, saying so). Exit codes: 0 all good, 1 no usable archive or copy refused, 3 archive good but a destination failed. See Backup and restore. |
backup check [--no-test] |
State of the backups: automatic backup, folder, free space, retention, last archive, encryption key, each destination (a test file written, read back and deleted, unless --no-test), last off-site copy. For what is missing, the command to run. Exit code 1 if something fails. |
backup setup |
Sets up the encrypted off-site copy, question by question, in a terminal (docker compose exec -it app …): encryption key (a new pair whose private key is shown once and saved nowhere, or your public key), storage (rclone’s wizard), destination (tested before it is saved), first backup. What already works is kept. |
offsite key [PUBLIC_ |
Without an argument, makes an age key pair: the private key is printed once on standard output, never saved; the public key is saved in the data folder. With a public key (age1…, ssh-ed25519 …), only saves it. |
offsite add NAME:PATH |
Tests a destination (write, read back, delete a test file), then saves it in the data folder. |
offsite remove NAME:PATH |
Removes a destination saved by offsite add or backup setup. |
offsite test |
Writes, reads back and deletes a test file on each off-site destination; reports a missing age key. |
offsite list |
Encrypted archives present on each destination. |
restore ARCHIVE|- [--force] |
Restores a backup (a .tar.gz file, or - for standard input), with the app and the worker stopped. --force replaces an existing instance or its key. See Backup and restore. |
© 2026 René Cotton and the Synaptane contributors.