---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-pr-list.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-pr-list.md
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# src pr list

List Repository Pull Requests Retrieves all pull requests from an repository

## Usage

`src pr list [flags]`

### Examples

**List open pull requests in current repository**

`src pr list`

**List PRs in another repository**

`src pr list -R foo/bar`

**Filter by status**

`src pr list --status open`

**Filter by author**

`src pr list --author username`

**Filter by source branch**

`src pr list --from feature-branch`

**Filter by target branch**

`src pr list --to main`

**Filter by reviewer**

`src pr list --reviewer username`

**JSON output**

`src pr list --json`

**Limit results**

`src pr list --limit 20`

### Flags

| Flag | Description |
| --- | --- |
| `-L, --limit int` | Maximum number of items to return (default "30") |
| `--sort string` | Sort by field (available: id, title, author, updated-by, created-at, updated-at) |
| `--status string` | Filter by status |
| `--from string` | Filter by from |
| `--to string` | Filter by to |
| `--author string` | Filter by author |
| `--reviewer string` | Filter by reviewer |
| `--label string` | Filter by label |

### Inherited flags

| Flag | Description |
| --- | --- |
| `--env string` | Override Sourcecraft environment (use 'src envs' to list available) |
| `--json string` | Output JSON, optionally filtered (--json or --json=field1,field2) |
| `--json-compact string` | Output compact JSON, optionally filtered |
| `-R, --repo string` | Select another repository using OWNER/REPO format |
| `-V, --verbose` | Enable debug logging output |

### Learn more

Use `src pr list <subcommand> --help` for more information about a command.
