The zerodot command controls Zerodot installs that install.sh makes on Linux and macOS. Release 0.2.31 added this command.
On Windows, install.ps1 does not install the zerodot command. Use install.ps1 and docker compose. See Install on macOS or Windows.
Where install.sh puts the command:
| Platform | Location | Notes |
|---|---|---|
| Linux | /usr/local/bin/zerodot |
Copy that root owns. Every command except help runs with sudo. It asks for your password when it needs it. |
| macOS | /opt/homebrew/bin/zerodot, /usr/local/bin/zerodot, or ~/.local/bin/zerodot |
Runs without sudo. Needs Bash 4.4 or newer (brew install bash), because macOS includes Bash 3.2. |
When you remove the last install with zerodot uninstall --purge (or install.sh --uninstall --purge), the script also removes zerodot.
Pick an install
Commands that target an instance take an optional NAME. NAME is the instance name, domain, or folder path of an install.
- When there is only one install on the machine, you can omit
NAME. - When there is more than one install and you omit
NAME, a picker in a terminal asks which install to use. Without a terminal, the command prints the list and exits with an error that asks forNAME.
zerodot checks /var/www/*, /opt/*, /srv/*, $HOME/*, and your user home folder when you run it with sudo. It also checks Docker Compose projects from docker compose ls -a. A folder counts as an install only when it has .zerodot-install or .env.
Commands
When you run zerodot with no command, it runs zerodot list.
| Command | What it does |
|---|---|
zerodot list |
Show all installs (NAME, DOMAIN, MODE, VERSION, FOLDER). |
zerodot status [NAME] |
Show address, mode, folder, backups, auto-updates, version status, and the state of each service (web, api, worker, sandbox). |
zerodot version [NAME] |
Show the current version, newest release, update status, and whether the install stays on a fixed --version. |
zerodot update [NAME] [OPTIONS] |
Update the install (alias: zerodot upgrade). Extra options pass to install.sh, for example --version 0.2.31, --version latest, or --backup daily. |
zerodot restart [NAME] [SERVICE] |
Restart all services, or one service (web, api, worker, sandbox). |
zerodot logs [NAME] [SERVICE] |
Follow logs (journalctl -f in native mode; docker compose logs -f --tail 200 in Docker mode) for all services or one (web, api, worker, sandbox). |
zerodot backup [NAME] |
Back up the database and .env now. |
zerodot restore [NAME] FILE [--yes] [--no-backup] [--force] |
Replace the database with a .sql.gz or .sql backup. |
zerodot stop [NAME] [--yes] |
Stop the services. Data and volumes stay. Users cannot open the app until you run zerodot start. |
zerodot start [NAME] |
Start the services again. |
zerodot clear-logs [NAME|--all] [--yes] |
Delete the logs of one install or all installs. |
zerodot doctor [NAME|--all] |
Run read-only health checks on one install or all installs. |
zerodot workers [NAME] [set N | concurrency N | sandboxes N] [--raise-db] [--yes] |
Show or change worker count, runs per worker, and sandboxes. |
zerodot config [NAME] [list | get KEY | set KEY=VALUE... | unset KEY...] [--yes] [--no-restart] [--force] [--show] |
Show or change .env settings. |
zerodot uninstall [NAME] [OPTIONS] |
Remove the install. Extra options pass to install.sh --uninstall, for example --purge or --yes. |
zerodot help (-h, --help) |
Show command usage. |
Update and uninstall
zerodot update (or zerodot upgrade) and zerodot uninstall download install.sh for the newest release from GitHub first. If the download fails, they use scripts/install.sh in the install folder. On Linux, they do this only when root owns that file and folder.
- Set
ZERODOT_INSTALL_URLto anhttps://URL to use a custom installer. Or setZERODOT_REPOto change the git repository URL. - If you set a fixed release with
--version,zerodot updatekeeps the install on that release. Runzerodot update --version latestto follow new releases again. - Automatic update timers that
install.shmakes runzerodot update <DIR> --yes --no-tui.
zerodot update
zerodot update zerodot.example.com --version latest
zerodot uninstall zerodot.example.com --purge
For all installer flags that you can pass, see Installer options.
Health checks
zerodot doctor [NAME|--all] runs read-only checks and changes nothing. It prints ✔ (ok), ! (warning), or ✘ (problem) with a short fix tip. It exits with code 1 only when it finds a problem. Warnings still exit 0.
zerodot doctor
zerodot doctor --all
It checks:
- Disk space on root
/, the Docker root, the data folder, and the backup folder. - Memory and swap (Linux), CPU load, and inodes (Linux).
- Docker images and build cache that you can reclaim.
- Current version and newest release.
- Service or container health (restarts, OOM kills, container log size).
- Host Postgres and Valkey services when the install uses them.
- Local
/healthzendpoints, the proxy service, publichttps://DOMAIN/healthz, and TLS certificate expiry. - The backup timer, newest backup age, and auto-update timer.
.envpresence, file permissions, and needed secrets (ZERODOT_SECRET_KEY,BETTER_AUTH_SECRET).
Backups and restore
Back up now
zerodot backup
zerodot backup runs the scheduled backup script (/usr/local/sbin/NAME-backup on Linux, ~/.zerodot/NAME-backup.sh on macOS) if one exists. Otherwise it dumps the database and copies .env into the backup folder. The default folder is /var/backups/NAME on Linux and ~/NAME-backups on macOS. It never overwrites a backup in the same second (it adds -2, -3, and so on).
In Docker mode, zerodot backup works only with the install's own Postgres container. For an external database, set up scheduled backups or dump by hand with pg_dump. See Back up and move.
Restore a database
zerodot restore /var/backups/zerodot/zerodot-2026-01-01.sql.gz
zerodot restore [NAME] FILE [--yes] [--no-backup] [--force] replaces the database from a .sql.gz or .sql file. It works only with Zerodot's own Postgres: a Docker Postgres container, or local Postgres on Linux in native mode. In native mode, the database and user must match NAME (with _ in place of -).
How zerodot restore runs:
- Checks the file and gzip data before stopping anything.
- Asks you to type
NAMEto confirm, unless you pass--yes. You must pass--yeswithout a terminal. - Checks
ZERODOT_SECRET_KEYagainst the backup's.envcopy (<backup>.env, orNAME.envin the same folder). Warns if they differ. With--yes, a key mismatch also needs--force. - Makes a safety backup first, unless you pass
--no-backup. - Stops the update timer for now. Stops the app services while keeping Postgres up. Drops and remakes the database, loads the file, and starts the services again.
If loading the file fails, the app services stay off. The command prints the path to the safety backup so you can restore it.
Workers and concurrency
Run zerodot workers with no action to see worker and sandbox counts. It also shows runs per worker (ZERODOT_WORKER_CONCURRENCY, default 20) and system runs per worker (ZERODOT_SYSTEM_CONCURRENCY, default 5). And it shows sandboxes (SANDBOX_REPLICAS), sandbox concurrency (SANDBOX_MAX_CONCURRENCY), and estimated DB connections against Postgres max_connections.
zerodot workers
zerodot workers set 4
zerodot workers concurrency 30
zerodot workers sandboxes 2 --raise-db --yes
| Action | Setting | Range | Mode |
|---|---|---|---|
set N |
WORKER_REPLICAS |
1–50 | Docker only |
concurrency N |
ZERODOT_WORKER_CONCURRENCY |
1–200 | Docker and native |
sandboxes N |
SANDBOX_REPLICAS |
1–20 | Docker only |
zerodot workers stops if estimated DB connections are more than 90% of max_connections. In Docker mode with the install's Postgres container, add --raise-db to raise ZERODOT_DB_MAX_CONNECTIONS and restart Postgres (a few seconds offline).
Before writing .env, zerodot workers saves a backup copy in /var/backups/NAME/env on Linux or <backup dir>/env on macOS. It keeps the newest 20 copies. It asks you to confirm unless you pass --yes.
Configuration
Use zerodot config to check and change settings in .env:
zerodot config
zerodot config get ZERODOT_BASE_URL
zerodot config set ZERODOT_TABLE_MAX_ROWS=500000
zerodot config unset ZERODOT_TRUSTED_ORIGINS
| Subcommand | What it does |
|---|---|
list (default) |
Print .env keys in A–Z order. Secret keys (SECRET, PASSWORD, PASS, TOKEN, KEY, PRIVATE, CREDENTIAL, CREDENTIALS, APIKEY) show (hidden). The command masks passwords inside URLs. |
get KEY |
Show one value. Secrets show (hidden) unless you pass --show on a terminal. |
set KEY=VALUE... |
Back up .env (keeps the newest 20), change .env, and apply changes (docker compose up -d in Docker mode, or restart the 4 services in native mode). |
unset KEY... |
Back up .env (keeps the newest 20), remove keys from .env, and apply changes. |
Options and safety checks:
- Pass
--no-restartwithsetorunsetto edit.envwithout restarting services. - Pass
--yesto skip confirmation questions. setrejects values that contain$,#,',",\,`, line breaks, or leading or trailing spaces. This makes Docker Compose and systemd read them the same way.zerodot configrefuses to changeZERODOT_SECRET_KEYorZERODOT_DB_PASSWORDunless you pass--force.zerodot configwarns thatzerodot updateresetsZERODOT_BASE_URL,ZERODOT_TRUST_PROXY, andZERODOT_VERSION.
For the full list of variables, see Configuration.
Logs
Follow logs for all services or one service (web, api, worker, sandbox):
zerodot logs
zerodot logs api
In Docker mode, zerodot logs runs docker compose logs -f --tail 200. Docker limits container logs to 10m × 3 files per container (ZERODOT_LOG_MAX_SIZE and ZERODOT_LOG_MAX_FILES in .env, with the json-file driver).
In native mode, zerodot logs runs journalctl -f.
Clear logs
zerodot clear-logs
zerodot clear-logs --all --yes
zerodot clear-logs asks you to confirm unless you pass --yes:
- Linux (Docker mode): Empties container log files, removes rotated files, and restarts the containers.
- macOS (Docker Desktop / OrbStack): Container logs live inside the VM (
docker compose up -d --force-recreateclears them). Soclear-logsclears only~/Library/Logs/NAME-update.logand~/Library/Logs/NAME-backup.log. - Native mode:
journaldstores the logs and cannot delete logs for one service (journalctl --vacuum-size=...trims all system logs).