> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI reference

> Look up the terminal commands used by these guides.

This page covers the commands used in the [guides](/docs/guides/ship-a-change.md). Use the installed help for the complete command menu.

> **Note:** The additions below target F\[no] 0.4.6. The latest release is 0.4.5. Use matching binaries before trying them.

## Terms

A node is a backlog task. A session is one agent's running or resumable context. A worktree is an isolated Git checkout.

A harness is the agent program, such as OpenCode or pi. A provider supplies a model. A PR is a GitHub pull request.

## Command groups

| Command | Job | Guide |
| - | - | - |
| `fno --version` | Show the installed version | [Install](/docs/install.md) |
| `fno --help` | Show the terminal menu | [Install](/docs/install.md) |
| `fno agents spawn` | Create a worker | [Run a fleet](/docs/guides/run-a-fleet.md) |
| `fno agents session list` | List sessions and their readings | [Recover a worker](/docs/guides/recover-a-worker.md) |
| `fno agents session peek` | Observe a transcript | [Message agents](/docs/guides/message-agents.md) |
| `fno agents session move` | Carry a live session to another machine | [Move a session](/docs/guides/move-a-session.md) |
| `fno mail send` | Send a follow-up to a session | [Message agents](/docs/guides/message-agents.md) |
| `fno backlog board` | Show the local work summary | [Manage a backlog](/docs/guides/manage-backlog.md) |
| `fno config get` | Read an effective setting | [Configuration](/docs/reference/configuration.md) |
| `fno do show` | Read a file at a revision | [Review and ship](/docs/guides/review-and-ship.md#read-a-file-or-compare-revisions) |
| `fno do diff` | Compare two revisions | [Review and ship](/docs/guides/review-and-ship.md#read-a-file-or-compare-revisions) |
| `fno config accounts usage --logins` | Read existing login usage | [Switch accounts](/docs/guides/switch-accounts.md#read-usage-from-existing-logins) |
| `fno do feedback` | Draft a redacted upstream issue | [Feedback](#draft-upstream-feedback) |
| `fno do pr status` | Read the current PR CI verdict | [Review and ship](/docs/guides/review-and-ship.md) |
| `fno mux pane run --shot` | Take a screen capture through a mux pane | [Run a fleet](/docs/guides/run-a-fleet.md#take-a-screen-capture-from-a-worker) |

Workflow names such as `fno:target` are harness prompts. They are not arguments to the terminal `fno` command.

## Worker launches

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Explain the worker launch options for this task. Ask me for any missing launch choices.
```

### What the agent runs

The fleet guide gives a complete read-only task. The first positional argument is the prompt, not the worker name.

| Option | Meaning | Default or requirement |
| - | - | - |
| `--name` | Worker name | Optional; generated when omitted |
| `-H`, `--harness` | Agent CLI | `agents.defaults.provider`, then the invoking harness, then Claude Code |
| `--as` | Execution lane | `thread` |
| `--cwd` | Repository for the worker | Canonical project checkout by default |
| `--once` | One exchange followed by teardown | Opt-in headless execution |
| `--mux` | Keep a row for a `headless` run, so the mux shows it | Needs `--once` or `--as headless` |

A `thread` is persistent and can be attached. A `pane` is hosted in the mux. A `headless` worker is noninteractive.

In F\[no] 0.4.9, `fno agents session rm` removes a finished `headless` row without `--force`. [Run a fleet](/docs/guides/run-a-fleet.md#clean-up) shows the command.

Pane placement requires the pane lane. Model and effort flags belong to the harness. Provider account selection is separate.

Read launch refusals before retrying. Capacity and account policy can prevent a valid command from starting a worker.

## Agent mail

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Send the follow-up we discussed to the intended worker. Ask me for the recipient or message if needed. Report the receipt.
```

### What the agent runs

`fno mail` is the root spelling of `fno agents mail`. Both accept the same subcommands and arguments.

`fno mail send` takes the recipient name or full session ID, then the quoted message. It sends asynchronously.

Use an exact registered name or the full session ID. Short UUID prefixes can identify several sessions and are refused.

Read the [receipt table](/docs/guides/message-agents.md#read-the-receipt) before interpreting a successful send as completed work.

`fno agents session peek` takes a recipient handle. `--lines` selects how many transcript records to read. Its default is 15.

Peek observes only. It does not submit a message or wake the worker.

## Session recovery

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Inspect the worker we discussed and identify its safe recovery options. Ask me which worker if unclear.
```

### What the agent runs

| Command | Argument | Effect |
| - | - | - |
| `fno agents session list` | None | Read registered sessions |
| `fno agents session peek` | Name or full session ID | Read recent transcript records |
| `fno agents session resume` | Session name | Try to resume existing context |
| `fno agents session attach` | Session name | Open a live worker so you can type to it |
| `fno agents session stop` | Session name | Stop the underlying process. A `pane` worker refuses and names the pane command |
| `fno agents session rm` | Session name | Remove the worker and its registry row. The transcript stays on disk |

Resume can refuse recovery. Preserve the exact error and the worker's files rather than assuming it created a new session.

Stop is a process action. It does not mark the task complete or prove that changes were merged.

## Backlog

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Inspect the backlog task we discussed and explain the supported edits. Ask me for its ID if needed.
```

### What the agent runs

| Command | Arguments | Result |
| - | - | - |
| `fno backlog idea` | Title and `--difficulty` | Create a task without a plan |
| `fno backlog get` | Node ID or slug | Read one task |
| `fno backlog update` | Node ID, then field operators | Edit an existing task |
| `fno backlog contain --release` | One or more contained node IDs | Release children for independent dispatch |
| `fno backlog board` | Optional `--project` | Read the local board |

Update operators are `field=value`, `field+=value`, and `field-=value`. Not every field supports every operator.

An invalid field or lifecycle move is refused. Read its required repair instead of writing the graph file directly.

### Release contained work

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Release the contained backlog tasks we discussed. Ask me for their IDs if needed. Report each release receipt.
```

#### What the agent runs

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno backlog contain --release <TASK_ID>...
```

Replace `<TASK_ID>...` with one or more existing contained node IDs. Do not supply the owner ID.

The command removes containment and declared surfaces. If `parent` names the former owner, the command clears it. It drops inherited owner PR references and records `released_from`. The former owner's closure no longer closes the released node. Other dependencies and dispatch policies still apply.

A successful release prints `released <TASK_ID> from <OWNER_ID>; it dispatches alone again`, with the real IDs.

If any ID is missing, repeated, or not contained, the batch refuses without changes. `--release` cannot accompany `--surface`.

See [manage a backlog](/docs/guides/manage-backlog.md#release-contained-work) for the task flow.

## Read revisions

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Read the file at the revision we discussed, then compare the two revisions. Ask me for missing revisions or paths.
```

### What the agent runs

Run from the repository that holds the revisions. Replace `<REV>` with a branch, tag, commit SHA, or `origin/main`. Replace `<PATH>` with a repository-relative file path.

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do show <REV>:<PATH>
fno do diff <REV_A> <REV_B> -- <PATH>
```

`show` prints the file bytes unchanged. `diff` prints a unified diff from `<REV_A>` to `<REV_B>`. It accepts multiple paths after `--`. Omit `-- <PATH>` to compare all paths. An empty diff prints nothing and exits `0`.

Both commands exit `3` for invalid arguments. If Git cannot read the revision or path, they exit `4`. A revision cannot start with `-`.

## Login usage

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Read usage for the logins already on this machine, including those F[no] does not manage. Report unavailable readings and their reasons.
```

### What the agent runs

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config accounts usage --logins
fno config accounts usage --logins --json
```

`--logins` makes a fresh read without the usage cache. JSON contains a `logins` array. Each row includes `provider`, `kind`, `label`, `sources`, `plan`, `identity`, `state`, `reason`, `windows`, `read_at`, and `age_s`.

Each window includes `label`, `used_pct`, `resets_at`, `span_s`, and `pace`. Pace equals used percentage minus elapsed percentage. A positive value means usage exceeds an even pace. Missing timing data makes pace `null`.

The command exits `0` even for unknown readings. Read each row's `state` and `reason`. See [existing login usage](/docs/guides/switch-accounts.md#read-usage-from-existing-logins) for sources and limits.

## Pull request status

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Check the current head and CI verdict for this work's pull request. Ask me for its number if needed.
```

### What the agent runs

Run `fno do pr status` followed by the PR number, from its repository. Read its CI verdict and current-head evidence.

| Exit | Meaning |
| - | - |
| `0` | Green |
| `1` | Red |
| `2` | Pending |
| `3` | Unknown |
| `4` | Read failed |
| `127` | GitHub CLI missing |

CI status is not completed review or merge authority. [Completion concepts](/docs/concepts/completion.md) describe the complete finish line.

## Draft upstream feedback

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Draft an upstream bug report from these words: the worker launch receipt is unclear. Do not publish it.
```

### What the agent runs

Available in F\[no] 0.4.6. `fno do feedback` drafts an upstream issue from a backlog node or your own words. It prints the draft and a prefilled GitHub issue link. It files nothing.

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do feedback --text "The worker launch receipt is unclear."
```

Use exactly one input: `--text "<words>"` or `--node <id>`. Replace `<words>` with your report, or `<id>` with the backlog node ID.

| Option | Meaning |
| - | - |
| `--kind bug` or `--kind feature` | Select the issue kind. Default: `bug`, or the node's type when using `--node`. |
| `--json`, `-J` | Print one JSON object. |
| `--offline` | Skip the GitHub duplicate search. |

The command masks secrets, home paths, emails, session IDs, vault and state paths, work-map project names except `fno`, and login and host names. A second scan refuses a draft with a surviving match. Check the draft yourself before publishing.

| Exit | Meaning |
| - | - |
| `0` | Draft printed. Nothing filed. |
| `2` | Invalid command use. |
| `3` | Redaction rescan refused the draft. No draft printed. |
| `4` | Node could not be read. |

To publish the draft yourself:

1. Read the draft and any duplicate results in your terminal.
2. Open the printed link in your browser.
3. Check the title and body for private text.
4. If the draft is ready, press **Submit** on GitHub.

## Next steps

* [Ship a change](/docs/guides/ship-a-change.md): use the workflows in order.
* [Configuration reference](/docs/reference/configuration.md): inspect the policy those commands use.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.