Reference
Every command.
All of them take the app name as an argument. Leave it out and Orbit lets you pick from a list. dv is a shortcut for orbit: dv list works the same.
Setup
orbit Opens the interactive menu. Does exactly what the CLI does.
orbit github Connects your GitHub account over the device flow. Lets you list and clone private repos.
orbit cf-token Checks the Cloudflare token against the API and stores it in /etc/orbit/cloudflare.ini with 0600 permissions. Profile tokens and account tokens (cfat_…) both work; give it only the permissions it asks for, because root reads it on every renewal.
orbit lang [code] Displays or sets the server language. Use orbit --lang <code> for one command or ORBIT_LANG for the current session.
orbit init [dir] [--force] Writes the detected deployment configuration to orbit.json so it can be versioned with the project. It runs without root privileges and does not require Orbit to be installed.
Apps
orbit new Wizard for adding a new site: repo, domain, stack detection, database and certificate.
orbit list A table of every app: type, domain, port, state and SSL.
orbit info [app] Repository, branch, domains, commands, internal port, path, last deploy and stored releases.
orbit env [app] Opens the app’s .env in nano — shared/.env, or the file orbit.json declares. It survives deploys and is linked into every release.
orbit env check <app> [--json] The variables orbit.json and .env.example ask for, against what is set, without showing a single value. Exits with 1 if a required one is missing — which is exactly what would stop the next deploy before the build.
orbit domain [app] Changes the primary domain or adds aliases. Regenerates the vhost and offers to reissue the certificate.
orbit remove [app] Removes an app. Asks you to type the name to confirm. Let’s Encrypt certificates are kept in case you reuse the domain; a Cloudflare origin certificate is set aside, and deleted with --purge.
orbit restart [app] Restarts the service. Only applies to Node and Python apps.
orbit stop [app] Stops the app’s systemd service.
orbit start [app] Starts the app’s systemd service.
orbit isolate [app] Migrates an application to a dedicated system user. PHP applications also receive a dedicated php-fpm pool, preventing cross-application access to environment files.
orbit env set|get|unset <app> [KEY] [value] Environment variables from a script, without opening nano.
Deploy
orbit deploy [app] git fetch, new release, build, symlink, restart. The previous version keeps serving until the last possible moment, and a second deploy of the same app waits for the first instead of crossing it.
orbit deploy --env KEY=value | --env-file <file> Writes variables into the app’s .env before the build — repeatable, or a whole KEY=value file. It is how a required variable is supplied from CI or from Orbit Desktop. For a secret, prefer --env-stdin, --env-file or the prompt: --env stays in the shell history and in ps.
orbit deploy --env-stdin <app> Reads KEY=value lines from standard input, with the same validation as --env, so a secret never reaches the command line, ps or sudo’s log. Composes with --json and --progress; since standard input is used up, nothing is asked. It is how Orbit Desktop 0.1.1 passes the variables a deploy is missing.
orbit deploy --all [--if-changed] Deploys every app in one pass, with a summary at the end. With --if-changed, only the ones whose remote has moved.
orbit deploy --pr <n> Deploys a pull request without merging it. With --pick or --ref you choose the branch, the commit or the PR from a list instead of typing it from memory.
orbit deploy --json [--progress] The result of the deploy as an object: new and previous release, commit, whether there was a rollback or a build recovery, how long it took and, if it failed, at which step.
orbit autodeploy enable|disable|status Deploys on its own when the branch moves. No webhooks and no open ports: a timer asks whether the remote has changed. On a GitHub repository, enable also turns on waiting for green CI, and says so; --no-checks opts out.
orbit autodeploy checks on|off <app> Waits for GitHub CI — the default for a GitHub repository since v1.4.9: the pass only deploys a commit whose checks and statuses have all passed — and deploys that exact commit, even if the branch moved meanwhile. Red never deploys and warns once per commit; if GitHub cannot be asked, it does not deploy either.
orbit lock <app> [-m "reason"] Freezes an app’s deploys. Autodeploy and deploy --all skip it, and a manual orbit deploy refuses, saying who froze it, when and why, unless you add --force. Rollback still works: it is the emergency exit.
orbit unlock <app> Lifts the freeze. It lives in /etc/orbit/apps/<app>.lock, readable with cat, and it does not travel in clones or backups.
orbit cron [list|run] <app> [task] The tasks declared under cron in orbit.json: each one is a systemd service plus timer with the app’s user, .env and sandbox, synced on every deploy. list shows the last and next run (also with --json); run fires one now.
orbit rollback [app] [release] Goes back to any of the last 5 releases instantly.
orbit clone <app> [new] Duplicates an app to set up a staging copy. It inherits the configuration but not the secrets, nor the certificate, nor autodeploy, and it is born in maintenance mode.
orbit maintenance on|off|edit [app] A "back shortly" page with a 503 code. Switched on by a file, without reloading nginx, and turned on automatically during the deploy restart.
orbit logs [app] [--since 1h] The service journal for Node and Python; nginx access and error logs for static sites. With --since, a specific window of time.
orbit top [--once] A live panel: CPU, memory and requests per app. The CPU comes from the cgroup and the requests from the nginx log. No ports, no daemons.
orbit metrics [app] Reports build duration, failures and deployment trends from a local TSV history. It uses the median for duration and begins trend reporting after six builds, without a collector or database.
orbit traffic [app] [--since 24h] Summarises distinct IPs, requests and automated traffic from existing nginx access logs. No cookies, client-side JavaScript or additional services are required.
orbit queue enable|disable|run|status <app> Processes a Laravel queue once per minute through a systemd timer, running queue:work --stop-when-empty in the active release. This avoids resident workers retaining code from a previous deployment.
orbit exec <app> [command] Runs something with the app’s environment loaded. With no command it opens a shell. It is what makes Prisma or Django migrations possible.
orbit migrate [app] [--yes] Applies migrations, showing you the plan first.
orbit redirect add|list|rm [app] Path redirects or whole-domain redirects, with wildcards and regular expressions.
orbit port [app] [port] Changes the app’s internal port. With no number it picks a free one; it also repairs two apps fighting over the same one.
Databases
orbit db create [app] Creates the role and the database, and writes DATABASE_URL into the app’s .env.
orbit db list Lists every database.
orbit db shell <database> Opens psql against the given database.
orbit db backup [app] A compressed copy in /var/backups/orbit. There is an automatic one every day at 4:30 with 14 days of retention.
orbit backup [app]|--all|list Archives configuration, environment, uploads and database data in a standard tar.gz file. Source code remains in Git; BACKUP_HOOK can transfer archives off-server.
orbit backup verify [file] Validates backup integrity and restorability. Verification runs when each backup is created and before off-server transfer.
orbit restore <file>|--all Puts a backup back where it belongs, or brings a whole server up from a directory of backups. The backup is read as data and rewritten by Orbit, never executed: one with a foreign user, symlinks or devices is rejected.
Certificates
orbit ssl [app] Issues or renews the Let’s Encrypt certificate. With the Cloudflare token stored it uses DNS-01 validation, which works with the orange cloud switched on and covers wildcard aliases.
orbit ssl --dry-run <app> The renewal due in two months, tested today: certbot renew --dry-run with the stored configuration, against Let’s Encrypt’s staging environment. Saves nothing and does not touch nginx; it says which method it will renew by and whether an alias added later is no longer covered.
orbit ssl --origin <app> [--rsa] [--force] A 15-year Cloudflare Origin CA certificate for Full (strict). The key is generated on the server and only the CSR goes to Cloudflare. It will not proceed if any of the app’s names is not proxied, and if nginx rejects the new certificate the previous one stays. --origin-cert and --origin-key install one made in the dashboard.
Server
orbit firewall status The current state of UFW and of the source rules.
orbit firewall lock Restricts ports 80 and 443 to Cloudflare IP ranges, blocking direct-origin access.
orbit firewall unlock Opens 80 and 443 back up to everyone.
orbit cf-update Refreshes the Cloudflare IP ranges used by set_real_ip_from.
orbit nginx-rebuild Regenerates every vhost. Useful after upgrading Orbit, so apps pick up the template improvements.
orbit watch enable|status|history Monitoring on a systemd timer, every minute. Restarts whatever falls over and gives up if an app restarts 3 times in 10 minutes. No daemons.
orbit notify setup|test|status Configures severity-filtered alerts through Telegram, Discord, a generic webhook or an SMTP relay. Channel tests validate each integration independently.
orbit metrics prom enable|disable|status Prometheus metrics with no exporter and no open port: Orbit writes orbit.prom into node_exporter’s textfile-collector directory and every orbit watch pass refreshes it. No watch, no file — a stale up 1 would read as now. orbit metrics --prom prints the same to stdout.
orbit admin add|remove|list <user> Lets a user run orbit without logging in as root: an orbit-admin group and a one-line sudoers rule, validated with visudo before it exists. It is root-equivalent, and Orbit says so every time it adds someone; each log line records who asked.
Diagnostics
orbit status Memory, disk, load, services and apps.
orbit doctor [--fix] A full diagnosis: nginx, services, whether each app is actually being served, whether its process is alive, whether it is in maintenance, DNS per domain and certificate expiry. With --fix it applies the safe repairs — including regenerating a vhost that has gone missing — and diagnoses again to show you the result.
orbit version [--json] Displays the Orbit version and JSON contract version independently, allowing product releases without unnecessary contract changes.
orbit --eva <command> EVA mode: it decides nothing for you. It shows the package.json scripts, the PRs and the commits, and lets you type whatever command you want. The simple path and the expert path go through the same code.
dv <subcommand> alias Shortcut for orbit. dv list works exactly like orbit list.
Nothing matches.