# gh pr create

Open a pull request from the command line.

## Quick answer
```
gh pr create --fill
```

## Syntax
```
gh pr create [flags]
```

## Examples

# Interactive — gh asks for title, body, base, and reviewers
gh pr create

# Auto-fill title and body from your commits
gh pr create --fill

# Set everything up front
gh pr create --title "Add rate limiting" --body "Closes #42" --base main

# Open a draft PR for early feedback
gh pr create --draft --fill

# Request reviewers and add labels
gh pr create --fill --reviewer alice,bob --label backend

# Skip the prompts and finish it in the browser
gh pr create --web

## Key flags

  --fill	Use commit info for the title and body (great for scripts).
  --fill-first	Use only the first commit for the title and body.
  -t, --title	Set the pull request title.
  -b, --body	Set the pull request body. Use --body-file - to read from stdin.
  -B, --base	The branch you want to merge into (defaults to the repo default branch).
  -H, --head	The branch that contains your changes (defaults to the current branch).
  -d, --draft	Open the pull request as a draft.
  -r, --reviewer	Request reviews from users or teams (comma-separated).
  -a, --assignee	Assign people to the PR. Use @me for yourself.
  -l, --label	Add labels by name.
  -w, --web	Continue creating the pull request on github.com.

Full guide: https://ghcli.com/gh-pr-create.php
