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

# Install pb

> Install and verify the Product Brain CLI (pb).

<Warning>
  **Early access** — Product Brain is evolving quickly. CLI behavior can change between beta releases. [**Join the Product Brain Community**](https://community.productbrain.io) for help and release notes.
</Warning>

The **`pb`** CLI lets you (or your coding agent in a terminal) read, search, and capture knowledge on the Chain. Most people ask in plain language; **your agent** runs the right `pb` invocations.

## Prerequisites

* **Node.js 18+**
* A **Product Brain API key** (`pb_sk_…`) from the app (**Settings → API keys**)

## Install

```bash theme={null}
npm install -g @productbrain/cli@beta
```

## Verify

**You:** ask your agent to confirm the CLI is installed.

**Your agent:**

```bash theme={null}
pb --version
pb --help
```

## Authenticate

```bash theme={null}
pb login
```

## First useful call

```bash theme={null}
pb orient --task "first orient after install"
```

## Upgrade / uninstall

```bash theme={null}
npm install -g @productbrain/cli@beta
npm uninstall -g @productbrain/cli
```

## Next steps

* [Quickstart](/docs/quickstart)
* [Connect your tools](/docs/integrations/overview)
