# CLI

Use `rig` to start a team, give an agent work, read its answer and bring the team back later. People and agents use the same commands. Start with the job below; the [full CLI reference](/docs/generated/cli-reference) lists every command and option.

## Find the command you need

Ask your installed CLI for help at any level:

```
rig --help
rig queue --help
rig queue create --help
```

The generated reference describes the site's current release. Local help describes the version on your machine, so check it when an option is missing or behaves differently.

## Start a team and see who's working

The built-in `starter` team gives you a Claude Code builder and a Codex reviewer, so it needs both signed in:

```
rig up starter
rig ps --nodes --rig starter
rig tui
```

`ps` lists the agents and their current state. The terminal UI lets you browse the team, its tasks and questions. `rig specs ls --kind rig` lists the teams available on your installation. See [Lifecycle](/docs/lifecycle) for starting your own team or resuming one you've stopped.

## Ask a question or assign a task

Send a quick question to an agent's address. For work that must get done, assign a task through the queue:

```
rig send dev-impl@my-rig "Which tests cover search?"
rig queue create --destination dev-impl@my-rig --body-file brief.md
```

`my-rig` and the seat name are examples; use an address from your own team. A queue task stays assigned until it's done or handed to another agent. See [Messaging](/docs/messaging) for questions and [Coordination](/docs/coordination) for task assignment and handoffs.

## Choose a guide by what you're doing

- **Start, stop or change the team:** [Lifecycle](/docs/lifecycle).
- **Resume work, compact or hand over a seat:** [Continuity](/docs/continuity).
- **Run a sequence of tasks or schedule a wake:** [Workflows](/docs/workflows).
- **Organize projects, files and completed work:** [The work tree](/docs/work-tree).
- **Give agents instructions and skills:** [Context](/docs/context).
- **Change settings:** [Configuration](/docs/configuration).
- **Connect another machine or reach a person:** [Hosts and humans](/docs/hosts-and-humans).
- **Choose accounts or inspect rig services:** [Accounts, providers and rig services](/docs/auth-and-env).
- **Use a rig from a chat agent or coding agent:** [MCP](/docs/mcp) and [Integrations](/integrations).
- **Find out why something stopped:** [Troubleshooting](/docs/troubleshooting).

## Read results in a script

Many commands accept `--json` for structured output:

```
rig whoami --json
rig ps --nodes --json
rig queue show <task-id> --full --json
```

`whoami` identifies the calling seat; `ps` describes the running agents; `queue show` reads one task. Use `--full` when you need the complete task rather than the default preview.

Most team operations need the daemon running. If a command can't reach it, start with `rig daemon status` and the [troubleshooting guide](/docs/troubleshooting).
