CLI reference
rig mirrors everything you can do in the app, and is the primary interface for AI agents. Install it with rig install or from the setup wizard.
Output rules
The CLI adapts to where its output is going:
- At a terminal - pretty, coloured, aligned output for humans.
- Piped to a script or AI - raw JSON, no ANSI codes. Force it anywhere with
--json. - Errors go to stderr as
{ "error": "...", "code": "..." }. - Exit codes:
0success,1general error,2not found,3already running,4app not running.
agent · piped
rig inspect acme-storefront | jq '{ port, pid, memory_mb }' { "port": 3001, "pid": 48213, "memory_mb": 312.4 }Commands
Privileged actions - enabling .rig routing and trusting the HTTPS certificate - stay in the GUI, since they need a macOS auth prompt. Everything else has a CLI equivalent.
Inspect
rig listList all projects with statusrig statusSystem status: DNS, proxy, countsrig inspect <name>Full detail: port, pid, memory, uptime, frameworkrig metrics <name>Recent memory / CPU samplesControl
rig start <name>Start a projectrig stop <name>Stop a projectrig restart <name>Restart a projectrig run <name> <script>Run a package.json script or Deno task, streamingrig dev [path]Discover and start a directory without permanently watching itrig open <name>Open the project URL in your browserLogs
rig logs <name>Last 100 log lines (use -n to change the count)rig logs <name> --followStream logs in real time as JSONrig logs <name> --since 5mLogs from the last durationrig logs <name> --grep <text>Filter log lines by substringrig clear-logs <name>Clear a project's log bufferConfig
rig add <path>Watch a folder and discover the projects inside itrig remove <path>Stop watching a folderrig ssl <name> <on|off>Toggle per-project HTTPSrig node <name> [version]Pin a Node version (auto to clear)rig configPrint all settingsrig config set <key> <value>Set tld, pkg-manager, node-manager, start-on-loginrig exportPrint this machine's shareable config as JSONrig import <file>Apply a shared config (or - to read stdin)System
rig free-port <port>Force-free a TCP portrig doctorRun health checks across DNS, proxy, ports, permissionsrig installSymlink the rig binary onto your PATHStreaming logs
--follow keeps the connection open and streams one JSON LogLine per row - ideal for an agent tailing a server while it reproduces a bug.
terminal
$ rig logs dashboard-api --follow