Skip to main content
Create, review, and manage pull requests directly from your terminal without leaving your workflow.

Overview

The wit pr command provides a complete pull request workflow from the CLI, including creating PRs, viewing details, managing reviews, and merging.

Commands

create

Create a new pull request from the current branch.

Options

Examples


list

List pull requests in the repository.

Options

Examples

Example Output


view

View details of a specific pull request.

Examples

Example Output


checkout

Fetch and checkout a pull request locally for testing or review.
This creates a local branch named pr-<number> pointing to the PR’s head commit.

Examples


merge

Merge a pull request.

Options

Examples


close

Close a pull request without merging.

reopen

Reopen a previously closed pull request.

review

Review a pull request using AI-powered code review (CodeRabbit).

Options

Examples


review-status

Check CodeRabbit configuration and installation status.

Example Output


Workflow Example

A typical PR workflow from the command line:

Integration with wit serve

The PR commands require a running wit server for full functionality. Start the server with:
Or connect to a remote wit platform instance.

CodeRabbit Integration

wit integrates with CodeRabbit for AI-powered code reviews. To set up:
  1. Get an API key from https://coderabbit.ai
  2. Configure it: wit pr review --configure
  3. Or set the environment variable: export CODERABBIT_API_KEY=your-key
You can also review local changes before creating a PR using wit review. See the Code Review documentation.