# Code reviews in your terminal

Run a full Greptile review on your local branch

| curl | npm | pnpm | bun | brew |
| --- | --- | --- | --- | --- |
| `~$ curl -fsSL https://greptile.com/cli/install \| bash` | `~$ npm install -g greptile` | `~$ pnpm add -g greptile` | `~$ bun add -g greptile` | `~$ brew install greptileai/tap/greptile` |

no credit card required • 14-day free trial

CLI

## Review code without leaving your terminal

[Read docs](https://www.greptile.com/docs/code-review/greptile-cli#greptile-cli)

### Ways to review from the terminal

#### 01

Review your local branch

Run `greptile review`, get a review of the feature branch diff in 60 seconds.

#### 02

Full fidelity

Identical to Greptile reviews in GitHub/GitLab

#### 03

`--agent`

Coding agents can use the greptile cli to review their own code

AGENT MODE

## From review to fix in one loop

`greptile review --agent` outputs every greptile catch as raw text with a suggested fix for your agent to apply.

ANATOMY OF A REVIEW

## The anatomy of a review

Every review includes severity-rated findings, suggested fixes and a PR summary.

[Learn more](/agent.md)

### Confidence scores

Know how safe a PR is to merge at a glance with a 0-5 score

### Diagrams

Parse complex changes with sequence diagrams and flowcharts generated for every PR

### Test generation

Automatically generate unit tests for new and changed code in every PR

### PR summary

Get the big picture on the PR's key changes

### Fix in Claude / Codex / Cursor

Address any comment with a one click fix directly to your preferred coding agent

### Chat with Greptile

Ask follow up questions in the PR to clarify issues and its context

`~$ npm i -g greptile`

## Review code before it hits the PR

[Learn more](https://www.greptile.com/docs/code-review/first-pr-review)

[Start now](https://app.greptile.com/signup)
