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

# src pr edit

Update PullRequest

## Usage

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

### Examples

**Update current PR title (based on current branch)**

`src pr edit --title "New title"`

**Update pull request by number**

`src pr edit 42 --title "New title"`

**Update pull request description**

`src pr edit 42 --description "Updated description"`

**Update both title and description**

`src pr edit 42 --title "New title" --description "New desc"`

### Flags

| Flag | Description |
| --- | --- |
| `-w, --web` | Open in browser after completion |
| `--silent` |  |
| `--title string` | Change Pull Request title (up to 1024 characters) |
| `--description string` | Change Pull Request description (up to 10Mb) |

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