operations cli (overlord)
the overlord cli is the operations and administration tool for managing server and worker services.
installation#
npm install -g @overlordai/clithe server also requires @overlordai/server and workers require @overlordai/worker to be installed alongside the cli.
commands#
overlord install#
interactive server installation wizard — checks environment, configures database, creates admin account.
overlord installthe wizard:
- checks prerequisites (node.js, redis, git)
- generates secrets (JWT_SECRET, WORKER_JWT_SECRET, ENCRYPTION_KEY)
- configures redis connection
- initializes the sqlite database and runs migrations
- creates the admin account
all configuration is written to ~/.overlord/.env.
overlord setup worker#
interactive worker setup wizard — configures connection, writes .env, registers service.
overlord setup workerprompts for:
- server url
- registration token (one-time, from admin → settings → tokens)
- machine name
- max concurrent task slots
writes configuration to ~/.overlord-worker/.env and registers the system service.
overlord start#
start server or worker services (systemd / launchd).
overlord start [server|worker]with no argument, starts all configured services. generates systemd/launchd service files automatically.
overlord stop#
stop running processes.
overlord stop [server|worker]overlord restart#
restart services.
overlord restart [server|worker]overlord status#
show process status table (pid, cpu, memory, uptime).
overlord statusoverlord logs#
view server or worker logs.
overlord logs [server|worker] [-n, --lines <n>]| flag | description |
|---|---|
-n, --lines <n> | number of lines to show (default: 50) |
you can also use system-level log tools:
# linux (systemd)
journalctl --user-unit overlord-server -f
journalctl --user-unit overlord-worker --since today
# macos (launchd)
tail -f ~/.overlord/logs/server.logoverlord doctor#
run system diagnostics. checks:
- node.js version
- redis connectivity
- database integrity
- port availability
- service health
overlord doctoroverlord upgrade#
upgrade all overlord packages to the latest release from npm, then restart running services.
overlord upgrade