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

# src pr draft

Draft PullRequest

## Usage

`src pr draft <pull-request> [flags]`

### Examples

**Convert current PR to draft (based on current branch)**

`src pr draft`

**Convert a pull request to draft by number**

`src pr draft 42`

**Convert PR to draft from another repository**

`src pr draft 42 -R foo/bar`

### Flags

| Flag | Description |
| --- | --- |
| `-w, --web` | Open in browser after completion |
| `--pull-request-id string` |  |
| `--silent` |  |

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