GH-PR-VIEW(1) GitHub CLI manual GH-PR-VIEW(1)

# [NAME](#NAME)

gh-pr-view - View a pull request

# [SYNOPSIS](#SYNOPSIS)

**gh pr view \[&lt;number&gt; | &lt;url&gt; | &lt;branch&gt;] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Display the title, body, and other information about a pull request.

Without an argument, the pull request that belongs to the current branch is displayed.

When **--comments** is used, terminal output includes the pull request details, comments, and reviews. When output is piped or redirected, only comments and reviews are printed.

With **--web** flag, open the pull request in a web browser instead.

# [OPTIONS](#OPTIONS)

[**-c**, **--comments**](#c)

View pull request comments

[**-q**, **--jq** **&lt;expression&gt;**](#q)

Filter JSON output using a jq expression

[**--json** **&lt;fields&gt;**](#json)

Output JSON with the specified fields

[**-t**, **--template** **&lt;string&gt;**](#t)

Format JSON output using a Go template; see "gh help formatting"

[**-w**, **--web**](#w)

Open a pull request in the browser

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [JSON FIELDS](#JSON_FIELDS)

**additions**, **assignees**, **author**, **autoMergeRequest**, **baseRefName**, **baseRefOid**, **body**, **changedFiles**, **closed**, **closedAt**, **closingIssuesReferences**, **comments**, **commits**, **createdAt**, **deletions**, **files**, **fullDatabaseId**, **headRefName**, **headRefOid**, **headRepository**, **headRepositoryOwner**, **id**, **isCrossRepository**, **isDraft**, **labels**, **latestReviews**, **maintainerCanModify**, **mergeCommit**, **mergeStateStatus**, **mergeable**, **mergedAt**, **mergedBy**, **milestone**, **number**, **potentialMergeCommit**, **projectCards**, **projectItems**, **reactionGroups**, **reviewDecision**, **reviewRequests**, **reviews**, **state**, **statusCheckRollup**, **title**, **updatedAt**, **url**

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [SEE ALSO](#SEE_ALSO)

[**gh-pr(1)**](/man/os/gh/gh-pr.1)

Oct 2026

---

Document: gh-pr-view(1) from gh 2.103.3-r1 (Chainguard OS)
Source: https://github.com/cli/cli
