Knowledge base / Run

rig CLI: run projects from the terminal

Install the rig command, where it lives, and how to drive the app and your Launch servers from the terminal: up, stop, logs, lane, slot, launch.

Applies to · Mac beta · ~4 min

The rig command talks to the Rig app on the same computer, so you can start and stop projects, read logs and queue heavy work without leaving the terminal.

Install

There is nothing separate to download. The Rig app ships the command and, each time it opens (and after it moves or updates), writes a small launcher that runs it with the app's own runtime, so you do not need Node.

  • On a Mac and on Linux the launcher is ~/.rig/bin/rig.
  • On Windows it is %USERPROFILE%\.rig\bin\rig.cmd.

The quickest way on a Mac: open the Rig menu and choose Install Command Line Tool…. Rig links /usr/local/bin/rig to the launcher (macOS asks for your password when that folder needs it), so rig works in every new terminal. On Linux the same item is in the File menu and links ~/.local/bin/rig, with no password.

Or put the launcher's folder on your PATH yourself, once:

  1. Open Rig once, so the launcher exists.
  2. On a Mac or Linux, add this line to your shell profile (~/.zshrc on a Mac, ~/.bashrc on most Linux systems), then open a new terminal:
    export PATH="$HOME/.rig/bin:$PATH"
  3. On Windows, run this once in Command Prompt, then open a new one:
    setx PATH "%USERPROFILE%\.rig\bin;%PATH%"
  4. Check it works: rig help lists every command.

Settings › Rig Code in the app shows the same PATH line. Agents that Rig starts on your other computers get the folder on their PATH automatically.

Before you run a command

  • Project commands (status, up, logs and the rest) need the Rig app with its MCP hub running (Connections). If Rig is closed, the command opens it first.
  • rig slot works even when Rig is closed (see below).

Common commands

Run commands from inside a project folder, or pass the folder path. A folder Rig does not know yet is added for you.

rig status                 # list projects
rig up                     # start this project (also: rig start)
rig stop                   # stop it
rig restart                # restart it
rig logs --lines 100       # recent log lines
rig open                   # open its local URL
rig health                 # health check
rig resources              # CPU and memory
rig lane staging           # switch lane: local, staging or production

If a project command fails with a connection error, open Rig, check the MCP hub is on in Connections, and confirm its port there if you changed it.

Share the machine between agents

When several coding agents each start a dev server and run tests at once, a laptop can stall. rig slot run puts heavy commands in one queue for the whole machine. It waits for a free slot (and for memory pressure to ease), runs the command, and hands the slot back when it exits. Exit codes and output pass through unchanged.

rig slot run --kind test -- npm test         # wait for a test slot, then run
rig slot run --kind stack -- npm run dev     # dev servers take a stack slot
rig slot run --no-wait -- npm test           # exit 75 at once if the machine is busy
rig slot status                              # who holds each slot, and the queue
rig slot statusline                          # one short line for a status bar

Limits are set from your Mac's memory and CPU and can be changed in Settings → Resource slots, which can also add hooks to Claude Code, Cursor and Codex that queue heavy commands for you. Test and build slots also tell Vitest, pytest-xdist, Cargo, Go and make how many workers to use, so two test runs don't each take every core.

If the Rig app is closed, rig slot run still shares slots between your terminals through a small folder in your home directory, and Rig picks those up when it opens. If even that fails, the command runs straight away: slots can delay work, never stop it.

Launch servers: rig launch

rig launch runs your Rig Launch servers from the terminal. It uses Rig's public API with an API token, so it works on any computer, with the Rig app open or not. Make a token in your account under API tokens with the launch:read and launch:write scopes, then save it once:

rig launch login                      # save an API token (or set RIG_API_TOKEN)
rig launch list                       # your servers (--team: your teams' servers)
rig launch show <server>              # one server
rig launch create --name api --tier good --agree-terms
                                      # shows the price; add --yes to order with a saved card
rig launch ssh <server>               # a shell, with your key or through Rig
rig launch power <server> on|off|reboot
rig launch backup <server> now
rig launch logs <server> --lines 200
rig launch metrics <server> --range 24h

A server is its name or its id. Add --json for the API's answer as JSON. Only rig launch ssh to a server set to Through Rig needs the Rig app on this computer.

Was this helpful?Updated Dec 2026 · Open Support

Works with

Available for any MCP client — including