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

> ## Agent Instructions
> IronBee (ironbee.ai) is an AI QA engineer: it verifies code changes against the running app and keeps the evidence. It is not related to the IronBee open-source web application firewall.
> The console is at https://console.ironbee.ai.
> Install the CLI with `npm install -g @ironbee-ai/cli`, sign in with `ironbee login`, and set up a project with `ironbee install`.
> In GitHub workflows, use the action as `ironbee-ai/ironbee-action@v1` and pass the `IRONBEE_API_KEY` secret as the `ironbee_api_key` input.
> In GitLab pipelines, include the component `gitlab.com/ironbee-ai/ironbee-gitlab/verify@v1`; it reads the `IRONBEE_API_KEY` CI/CD variable by default.
> In Bitbucket Pipelines, run the pipe `docker://ghcr.io/ironbee-ai/ironbee-bitbucket:v1` and pass `IRONBEE_API_KEY: $IRONBEE_API_KEY` and `BITBUCKET_OAUTH_TOKEN: $BITBUCKET_OAUTH_TOKEN` under its `variables:`.
> Console scenarios (https://docs.ironbee.ai/console/scenarios) and CLI saved scenarios (https://docs.ironbee.ai/cli/guides/scenarios) are separate features.
> For plans and prices, link to https://ironbee.ai/pricing; the website is the source of truth for them.

# Managing projects

> Install, remove, track, and update IronBee across your projects.

Once the CLI is installed and you're signed in (see [Getting Started](https://docs.ironbee.ai/cli/get-started/getting-started.md)), these commands set IronBee up in a project, remove it, keep track of where it's installed, and keep the CLI itself current.

***

## Install IronBee in a project

Run the installer from your project root:

```bash theme={null}
ironbee install
```

IronBee detects your AI client (Claude Code, Cursor, or Codex) and wires up everything it needs: the completion hook, the verification skill and rule, the devtools MCP server, and the matching permissions. If it can't detect a client, it asks which one you use.

Installing doesn't contact the console. Your sessions report to a console project named after your repository. See [How IronBee identifies your project](https://docs.ironbee.ai/cli/concepts/projects.md).

To target a specific client explicitly:

```bash theme={null}
ironbee install --client claude   # Claude Code
ironbee install --client cursor   # Cursor
ironbee install --client codex    # Codex CLI
ironbee install --client all      # every detected client
```

When you don't pass `--client` (and IronBee can't uniquely detect one), install shows a **checkbox multi-select** so you can set up **any combination** of clients in one pass - **space** toggles a client, **`a`** selects all, **Enter** confirms. With **no** client detected, the first client is pre-checked; with **several** detected, install shows the same picker with the detected clients pre-checked so you confirm (or trim) the set rather than silently installing into all of them. Confirming with nothing selected aborts. In a non-interactive shell (`-y`, CI, piped stdin), multiple detected clients are all installed without a prompt - the historical behavior.

![Checkbox multi-select titled 'Which client(s) to install for?' with claude checked and cursor and codex unchecked](https://mintcdn.com/ironbee/SCVDNf59c_RrstXj/images/cli/client-selection.png?fit=max\&auto=format\&n=SCVDNf59c_RrstXj\&q=85\&s=f89da7fdd97b04ef41fb493ccd196aac)

(`--client all` does the same non-interactively - it installs for every detected client.)

The interactive flow then asks three more questions in order - **mode**, **platforms**, then **checks** - because choosing `monitor` makes the platform picker (and the checks step) moot and skips them.

### Choosing the verification mode

After resolving the client, install asks **which verification mode** to run. In an interactive terminal it shows an arrow-key single-select, pre-selecting the project's current mode (so re-installing keeps your choice; a fresh project defaults to `assist`):

```
Which verification mode?
  ↑/↓ move · enter confirm

    auto verify (enforce)   block task completion until changes are verified — full enforcement
  > assist                  tools installed but not enforced — the agent verifies manually via /ironbee-verify (default)
    monitor only            no enforcement — only track sessions / activity / tools to the collector
```

Skip the prompt with `--mode`:

```bash theme={null}
ironbee install --mode assist     # tools installed, manual /ironbee-verify only (default)
ironbee install --mode enforce    # full enforcement - block completion until verified
ironbee install --mode monitor    # monitoring-only - no enforcement, no platform picker
```

Picking `enforce` opens two follow-up pickers: [strictness](https://docs.ironbee.ai/cli/guides/verification.md#strict-mode) (non-strict / strict) and then [fix enforcement](https://docs.ironbee.ai/cli/guides/verification.md#fix-enforcement-block-on-a-fail-or-just-report-it) (fix-enforce / report-only). Skip them with `--strict` (its absence keeps the existing or default non-strict choice) and `--fix` / `--no-fix` - all enforce-only; a non-interactive `--mode enforce` skips both pickers regardless.

The choice is written explicitly to the committed project config (`verification.enable` / `verification.auto`), so it's equivalent to the [`ironbee verification` toggles](https://docs.ironbee.ai/cli/guides/verification#verification-modes). For `assist` and `enforce`, install also records [`verification.strict`](https://docs.ironbee.ai/cli/guides/verification#strict-mode) and [`verification.fix`](https://docs.ironbee.ai/cli/guides/verification#fix-enforcement-block-on-a-fail-or-just-report-it) at their defaults (a choice you already made is kept). Any existing [`verification.model`](https://docs.ironbee.ai/cli/guides/verification#picking-the-verifier-model) is preserved. The picker default reads the project's **own** committed/local config (the machine-global config is ignored), so a fresh project defaults to `assist` even on a machine running monitoring-only globally. In a non-interactive shell with no `--mode` flag, the verification config is left untouched.

### Choosing which platforms to verify

Unless you picked `monitor`, install then asks **which verification platforms** (cycles) to enable. In an interactive terminal it shows an arrow-key multi-select, pre-checked from the project's current config (so re-installing keeps your choices; a fresh project defaults to browser-only):

```
Which platforms should require verification?
  ↑/↓ move · space toggle · a all · s suggest · enter confirm

  [x] browser   web UI · DOM · console · a11y · screenshots · recording
  [ ] node      Node.js runtime · tracepoints · logpoints · exceptions · variables · logs · HTTP capture
  [ ] python    Python runtime (debugpy) · tracepoints · logpoints · exceptions · thread dumps · logs · HTTP capture
  [ ] backend   HTTP · gRPC · GraphQL · WebSocket · DB · logs
  [ ] android   device/emulator · taps · swipes · screenshots · UI snapshots · Logcat · HTTP
  [ ] terminal  CLI / REPL / TUI driving over a PTY · send keys · capture output · exit codes
```

The picker also offers an **`s` "suggest"** key. Press it to have IronBee analyze your project with a headless prompt and **replace** the current selection with a recommended set of cycles; you can still adjust it before pressing Enter. All three clients can run the analysis - Claude Code, Codex, and Cursor - and when several are selected it uses the highest-priority one (`claude > codex > cursor`). It's opt-in (nothing runs until you press `s`), and if the analysis is cancelled (Esc), times out, or fails, your current selection is kept.

![Platform multi-select with the 's suggest (claude)' key highlighted in the help bar and 'Analysing project with claude…' shown while IronBee recommends which cycles to enable](https://mintcdn.com/ironbee/SCVDNf59c_RrstXj/images/cli/platform-selection_analyze.png?fit=max\&auto=format\&n=SCVDNf59c_RrstXj\&q=85\&s=7defd27ec67923a881a9742c48d945a4)

When the analysis finishes, IronBee **replaces** your checkboxes with its recommendation (here browser, node, and backend) - still editable before you press Enter:

![Platform multi-select after suggestion with browser, node, and backend checked as the recommended set](https://mintcdn.com/ironbee/SCVDNf59c_RrstXj/images/cli/platform-selection_suggest.png?fit=max\&auto=format\&n=SCVDNf59c_RrstXj\&q=85\&s=603356929e3b0d346e0e6fc71b90d25a)

Skip the prompt with `--platforms` (a comma-separated subset of `browser,node,python,backend,android,terminal`):

```bash theme={null}
ironbee install --platforms browser,node   # enable just these two
ironbee install --platforms ""             # disable all cycles (incl. the default-on browser)
```

The selection is written to the committed project config before the artifacts render, so it's equivalent to running the [`ironbee browser` / `node` / `python` / `backend` / `android` / `terminal`](https://docs.ironbee.ai/cli/guides/verification#enable-or-disable-a-platform) toggles. Install records the **full** platform state explicitly - an `enable` flag for every cycle (`browser`, `node`, `python`, `backend`, `android`, `terminal`) - so the committed `config.json` plainly shows what's on and what's off. In a non-interactive shell with no `--platforms` flag (or in monitoring-only mode, including a just-chosen `--mode monitor`), the platform config is left untouched.

In a git repository, install warns you when an enabled platform matches no tracked file, so a cycle that would never run doesn't go unnoticed. With the browser off, Node, Python and Backend without their own patterns watch every code file of their language. See [Configuration](https://docs.ironbee.ai/cli/configuration/configuration.md#verification-cycles).

### Choosing your project checks

> [!NOTE]
>
> Beta - the suggested commands are a starting point to review, not a finished config.

The last step (skipped in monitoring-only mode, or when no headless-capable client is available) offers to set up [project checks](https://docs.ironbee.ai/cli/guides/verification.md#project-checks-run-first-lint-tests-types) - deterministic lint / typecheck / test / build / format commands IronBee runs as the first step of every verification cycle. In an interactive terminal it asks a yes/no first (default **No**); if you accept, it analyzes your project with your AI client and proposes concrete commands for you to approve.

Control it non-interactively with a tri-state flag:

```bash theme={null}
ironbee install --checks       # run the analysis and accept the suggested set (skip the yes/no gate)
ironbee install --no-checks    # skip the checks step entirely
```

With no flag, checks are offered only on an interactive terminal and skipped otherwise. This is the same flow as the standalone [`ironbee checks suggest`](https://docs.ironbee.ai/cli/guides/verification#let-ironbee-suggest-your-checks) command, which you can re-run anytime; re-suggesting is additive, so it never clobbers checks you've hand-tuned.

### DevTools prefetch (warming the first MCP start)

The devtools MCP server is launched via `npx` against a [pinned version](#the-devtools-pin), so the very first start on a machine downloads the package **and** the Playwright browser binaries - cold enough to blow past some MCP hosts' startup timeout. To avoid that, `ironbee install` finishes by **prefetching** the pinned devtools into the npx cache (with live download progress), matched to the browsers your rendered setup actually needs. A prefetch failure never fails the install - the first MCP start just installs lazily instead.

It runs automatically on an interactive install (skipped under `--json`, in a non-interactive shell, or when installing from the [TUI](https://docs.ironbee.ai/cli/guides/interactive-mode.md), which tips you to run it standalone) and is controlled with a tri-state flag:

```bash theme={null}
ironbee install --prefetch      # force the prefetch, even non-interactively
ironbee install --no-prefetch   # skip it - the first MCP start installs lazily
```

Set the [`IRONBEE_NO_PREFETCH`](https://docs.ironbee.ai/cli/configuration/environment-variables#advanced) env var as a global kill-switch. On the install path, monitoring-only projects (no devtools artifacts) and custom `ironbeeDevTools.mcp` entries are skipped automatically. An interactive `ironbee browser enable` also prefetches (it's the moment a browser-less warm cache would need browser binaries). And you can warm the cache standalone, anytime:

```bash theme={null}
ironbee devtools prefetch                       # warm the pinned devtools for this project
ironbee devtools prefetch --browsers chromium   # override the browser set (csv; also firefox, webkit, chromium-headless, none)
ironbee devtools prefetch -p <dir> --json       # target another project; {ok, status, spec, browsers, detail}
```

Unlike the install step, the standalone command is deliberately permissive - a project with no rendered devtools entry (monitoring-only included) warms a default `chromium` plan anyway; pass `--browsers none` for a package-only warm. Exit codes: `0` completed (including already-warm), `1` failed, `2` skipped (npx unavailable or the kill-switch set). When a CLI upgrade triggers the [auto re-render](#auto-re-rendering-after-an-upgrade), that pass re-runs the prefetch across your registered projects too; a patch that changes nothing structural doesn't, so after a pin-only bump run `ironbee devtools prefetch` yourself.

### Unattended installs

For scripts and CI, `install` can run with zero prompts:

```bash theme={null}
ironbee install <dir> --client claude --mode enforce --platforms browser,node \
  --no-checks --yes --json
```

| Flag | Description |
| - | - |
| `-y`, `--yes`, `--non-interactive` | Force zero prompts even under a TTY. Any choice you didn't pass a flag for falls back to the flag / existing config / defaults. |
| `--json` | Emit a machine-readable summary to stdout (`{ ok, project, clients, mode, strict, fix, platforms, checks, prefetch }`); decorative logs go to stderr. |

> [!NOTE]
>
> Restart your AI coding client after installing so it picks up the new hooks and tools.

### Install everywhere at once

IronBee keeps an inventory of every project you've installed it into (see [The project inventory](#the-project-inventory) below). To re-run install across all of them (handy after changing a global setting):

```bash theme={null}
ironbee install --all
```

With `--json`, the `--all` form emits a roll-up envelope instead of the single-project one: `{ ok, all: true, total, failures, prefetch }`.

***

## Remove IronBee from a project

```bash theme={null}
ironbee uninstall
```

This removes the hooks, skill, rule, MCP server entry, and permissions IronBee added, deletes the project's `.ironbee/` directory, and drops the project from the inventory.

> [!WARNING]
>
> Uninstalling deletes the whole `.ironbee/` directory, including the committed `config.json`, your saved `scenarios/` and `VERIFICATION.md` files, and the project's local session data under `~/.ironbee/projects/<token>/`. This happens with `--client` too. Commit or back up anything you want to keep first.

| Option | Description |
| - | - |
| `--client <name>` | Remove a specific client's setup (`claude`, `cursor`, `codex`, or `all`). This still deletes the project's `.ironbee/` directory and local session data, even if another client stays installed. |
| `--all` | Remove IronBee from **every** registered project. Prompts for confirmation first. |
| `-y`, `--yes` | Skip the confirmation prompt (required with `--all` in scripts/CI). |

```bash theme={null}
ironbee uninstall --all        # asks before wiping every project
ironbee uninstall --all --yes  # no prompt - for scripts
```

***

## The project inventory

IronBee tracks the projects it's installed in at `~/.ironbee/projects.json`. This inventory is what `install --all` and global config changes use to know which projects to update.

You normally don't manage it by hand; `ironbee install` adds a project automatically, and `ironbee uninstall` removes it. Two commands let you adjust the inventory **without touching any installed files**:

```bash theme={null}
ironbee register     # add the current project to the inventory
ironbee unregister   # remove the current project from the inventory
```

* **`register`** - retrofit a project that was set up manually (or before the inventory existed) so it shows up for `install --all` and global-config notices. No artifacts are written.
* **`unregister`** - drop an entry without uninstalling anything. Works even if the project directory has already been deleted.

Both accept `-p, --project <dir>` to target a directory other than the current one.

***

## Update the CLI

Check for a newer release and update in place:

```bash theme={null}
ironbee update
```

The command compares your installed version against the npm registry, updates to the latest if one exists, and warns you if your shell would otherwise keep resolving an older copy on your `PATH`. You can always update manually instead:

```bash theme={null}
npm install -g @ironbee-ai/cli@latest
```

> [!NOTE]
>
> Restart your AI coding client after updating to use the new version.

### Auto re-rendering after an upgrade

Occasionally a new release changes the **structure** of the files install writes into a project - hook configs, the skill/rule/agent files, MCP entries, the verifier sub-agent. When that happens, IronBee re-renders every [registered project](#the-project-inventory) so they all pick up the new structure, without you running `install --all` by hand.

* It triggers right after the upgrade (the npm `postinstall`, including via `ironbee update`) and, as a fallback, on your next interactive `ironbee` command.
* It's **non-destructive**: re-rendering preserves your config - mode, platforms, the verifier model, and any custom verify patterns are kept.
* In an interactive terminal you get a one-key **"Press Enter to update them now…"** acknowledgement before it runs. In any non-interactive context (pipes, CI, agent-fired hooks) it **defers** rather than re-rendering silently, so the next interactive run picks it up.
* Routine patches that don't change the file structure re-render nothing.

To suppress the auto re-render entirely (CI, locked-down machines), set [`IRONBEE_NO_AUTO_RERENDER`](https://docs.ironbee.ai/cli/configuration/environment-variables#advanced) - or rely on `CI` being set, which also short-circuits it.

### The devtools pin

Each CLI release drives one **exact, pinned** version of the `@ironbee-ai/devtools` package - the pin is baked into every rendered MCP server entry (`npx -y @ironbee-ai/devtools@<version>`), so a given CLI build always runs one immutable devtools build. The pin is a build-time constant, deliberately **not** a config key (point `ironbeeDevTools.mcp` at your own entry if you need a different build). Read it programmatically:

```bash theme={null}
ironbee devtools version          # bare version on stdout, script-friendly: 0.53.0
ironbee devtools version --json   # {"name":"@ironbee-ai/devtools","version":"0.53.0","spec":"@ironbee-ai/devtools@0.53.0"}
```

The output carries nothing else (no banner, no update notice), so `V=$(ironbee devtools version)` is safe in scripts - it's the contract for downstream tooling that bundles or pre-fetches devtools at its own build time.

***

## What's next?

> [card] [Verification](https://docs.ironbee.ai/cli/guides/verification.md)
>
> Choose which platforms get verified and switch between enforcement and monitoring-only.

> [card] [Interactive mode (TUI)](https://docs.ironbee.ai/cli/guides/interactive-mode.md)
>
> Manage projects, platforms, and sessions from a full-screen terminal UI.


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