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

# Install CLI on Windows

> Install the signed native CodeRabbit CLI on Windows with PowerShell, without WSL or administrator rights.

CodeRabbit CLI runs natively on Windows x64. The installer adds both `coderabbit` and `cr` for the current user, without requiring WSL or administrator rights.

## Before you start

* Windows on an x64 machine
* Windows PowerShell 5.1 or PowerShell 7
* Git installed and available on `PATH`
* Outbound HTTPS access to `cli.coderabbit.ai`

## Install from PowerShell

<Steps>
  <Step title="Open PowerShell">
    Open Windows PowerShell or PowerShell 7 as your normal user. Administrator access is not required.
  </Step>

  <Step title="Run the installer">
    Run the stable installer:

    ```powershell theme={null}
    irm https://cli.coderabbit.ai/install.ps1 | iex
    ```

    The installer downloads the native Windows x64 release, verifies its Authenticode signature and approved signer identity, and installs it under `%LOCALAPPDATA%\Programs\coderabbit`.
  </Step>

  <Step title="Verify the installation">
    Open a new PowerShell window, then check both command names:

    ```powershell theme={null}
    coderabbit --version
    cr --version
    ```
  </Step>

  <Step title="Authenticate">
    Sign in with your CodeRabbit account:

    ```powershell theme={null}
    coderabbit auth login
    ```

    For an EU-hosted account, run `coderabbit auth login --region eu` instead.
  </Step>
</Steps>

## What the installer configures

* Installs `coderabbit.exe` and the `cr.exe` alias in `%LOCALAPPDATA%\Programs\coderabbit`
* Adds that directory to the current user's `PATH`
* Verifies Authenticode validity, the approved signer subject and issuer, and the Code Signing EKU before installing the executable
* Keeps the installation scoped to the current user, without administrator rights

If `coderabbit` is not recognized immediately, close PowerShell and open a new window so it reloads the updated user `PATH`.

## Install an exact version

Set `CODERABBIT_VERSION` in the current PowerShell session before running the installer:

```powershell theme={null}
$env:CODERABBIT_VERSION = "<version>"
irm https://cli.coderabbit.ai/install.ps1 | iex
Remove-Item Env:CODERABBIT_VERSION
```

Use an exact published version such as `0.7.5` without a leading `v`.

## Update CodeRabbit CLI

For a standard per-user installation, run:

```powershell theme={null}
coderabbit update
```

The update handoff waits for the running CLI to exit, verifies the new executable, and replaces `coderabbit.exe` and `cr.exe` together. If replacement or verification fails, the installer restores the previous pair. Manually copied executables are outside this update flow; rerun the PowerShell installer to move them to the supported location.

## Troubleshooting

| Symptom                                      | Next step                                                                                                                           |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `coderabbit` is not recognized               | Open a new PowerShell window, then run `Get-Command coderabbit` to verify the user `PATH` update.                                   |
| Signature or signer verification fails       | Do not bypass the check. Retry the installer, verify access to `cli.coderabbit.ai`, and contact CodeRabbit Support if it continues. |
| The download is blocked on a managed network | Ask your administrator to allow outbound HTTPS to `cli.coderabbit.ai`; see [CLI network requirements](/cli/network-requirements).   |
| A manually copied executable cannot update   | Rerun the PowerShell installer to create a supported per-user installation.                                                         |

## What's next

<CardGroup cols={1}>
  <Card title="Command-Line Review Tool" href="/cli" icon="square-terminal" horizontal>
    Authenticate and run your first local CodeRabbit review
  </Card>

  <Card title="CLI Command Reference" href="/cli/reference" icon="terminal" horizontal>
    Review available CLI commands and options
  </Card>

  <Card title="CLI network requirements" href="/cli/network-requirements" icon="network" horizontal>
    Configure outbound access for restricted networks and proxies
  </Card>
</CardGroup>
