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

# src pr create

Create a new pull request on SourceCraft.

## Usage

`src pr create [flags]`

### Examples

**Create PR interactively**

`src pr create`

**Create PR with title**

`src pr create --title "Add new feature"`

**Create PR with title and description**

`src pr create --title "Fix bug" --description "Fixes issue #123"`

**Create PR targeting specific branch**

`src pr create --title "Feature" --base develop`

**Create PR from specific source branch**

`src pr create --title "Feature" --head feature-branch`

**Create as draft**

`src pr create --title "WIP: Feature" --draft`

**Create and request reviewers**

`src pr create --title "Feature" --reviewer alice --reviewer bob`

**Create and open in browser**

`src pr create --title "Feature" --web`

### Flags

| Flag | Description |
| --- | --- |
| `-B, --base string` | Target branch (default: main) |
| `-b, --description string` | Description for the pull request |
| `-d, --draft` | Create as draft |
| `-H, --head string` | Source branch (default: current branch) |
| `-r, --reviewer strings` | Request reviewers by slug |
| `--silent` | do not notify subscribers |
| `-t, --title string` | Title for the pull request |
| `-w, --web` | Open in browser |

### 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 create <subcommand> --help` for more information about a command.
