CLI reference

Every command is subcommand of grit. Host-targeting commands take --host <name> (defaults to the host marked default in ~/.grit/hosts.yaml).

grit cloud init

Provision a fresh Ubuntu VPS: secure it, install Docker + Orbita + Traefik, create your admin login and an orb_ deploy token, and register the host. Interactive by default — run it with no flags and answer the wizard.

grit cloud init
FlagMeaning
--server user@ip[:port]Server to connect to (skips the "IP" prompt)
--ssh-key <path>Private key for the initial connection
--domain <host>Dashboard domain (blank → install on the IP)
--acme-email <email>Let's Encrypt contact for TLS
--admin-email <email>Orbita super-admin login
--deploy-user <name>Sudo user to create (default deploy)
--gen-keyGenerate a new SSH key for the deploy user
--deploy-pubkey <path>Use an existing public key instead
--skip-hardenSkip the hardening script
--name <host>Name to register the host under (default prod)
--yesNon-interactive — use flags + defaults, no prompts
Interactive by default, scriptable with flags

Provide every required value plus --yes for CI. Anything you omit in interactive mode is asked; anything you pass is used as the default.

grit cloud — host management

CommandDoes
grit cloud statusPlatform health + version + metrics
grit cloud github-authStore a GitHub token (repo + admin:repo_hook) for repo push
grit cloud dashboardOpen a private SSH tunnel to the Orbita panel
grit cloud hostsList registered hosts
grit cloud use <name>Set the default host
grit cloud loginRe-authenticate / refresh the orb_ token

grit deploy

Deploy the Grit app in the current directory.

grit deploy [--host prod] [--plan] [--no-migrate] [--branch main]
FlagMeaning
--host <name>Target host
--planDry run — print the plan, change nothing
--no-migrateSkip migrations (overrides grit.yaml)
--branch <name>Branch to build (default from grit.yaml)
--yesSkip the first-run grit.yaml wizard confirmation

Operations

CommandDoes
grit logs [-f]Tail (or stream) app logs over WebSocket
grit rollbackRevert to the previous deploy
grit psList running services + health
grit env pull / env pushSync encrypted env with Orbita
grit exec -- <cmd>Run a one-off command in the app container

Config files

PathPurpose
~/.grit/hosts.yamlRegistered hosts: API URL, orb_ token, default flag
./grit.yamlPer-app deploy manifest (spec)
./grit.jsonGrit's app descriptor — read, never written by Orbita
~/.ssh/<deploy-key>Generated deploy key (private stays on your laptop)

Next