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

# [NAME](#NAME)

gh-discussion-view - View a discussion (preview)

# [SYNOPSIS](#SYNOPSIS)

**gh discussion view {&lt;number&gt; | &lt;discussion-url&gt; | &lt;comment-id&gt; | &lt;comment-url&gt;} \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Display the title, body, and other information about a discussion.

To see the comments on a discussion, pass **--comments**. A few latest replies of each comment will also be retrieved regardless of the selected ordering. When **--comments** is used, terminal output includes the discussion details and comments. When output is piped or redirected, only the comments are printed.

To see the full reply thread of a single comment, pass a comment node ID or comment URL as the argument instead of a discussion (e.g., **https://github.com/OWNER/REPO/discussions/123#discussioncomment-456**).

Pagination and ordering can be controlled via **--order**, **--limit**, and **--after** flags.

Use **--web** to open the discussion or comment in a web browser instead.

# [OPTIONS](#OPTIONS)

[**--after** **&lt;string&gt;**](#after)

Cursor for the next page

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

View discussion 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

[**-L**, **--limit** **&lt;int&gt; (default 30)**](#L)

Maximum number of comments or replies to fetch

[**--order** **&lt;string&gt; (default "newest")**](#order)

Order of comments or replies: {oldest|newest}

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

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

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

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

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

Open a discussion in the browser

# [JSON FIELDS](#JSON_FIELDS)

**answerChosenAt**, **answerChosenBy**, **answered**, **author**, **body**, **category**, **closed**, **closedAt**, **comments**, **createdAt**, **id**, **labels**, **locked**, **number**, **reactionGroups**, **state**, **stateReason**, **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.

# [EXAMPLE](#EXAMPLE)

```
# View a discussion by number
$ gh discussion view 123
# View a discussion by URL
$ gh discussion view https://github.com/OWNER/REPO/discussions/123
# View with comments
$ gh discussion view 123 --comments
# View with oldest comments first
$ gh discussion view 123 --comments --order oldest
# Limit to 10 comments
$ gh discussion view 123 --comments --limit 10
# Fetch the next page of comments
$ gh discussion view 123 --comments --after CURSOR
# View the reply thread of a comment by node ID
$ gh discussion view DC_abc123
# View the reply thread of a comment by URL
$ gh discussion view 'https://github.com/OWNER/REPO/discussions/123#discussioncomment-456'
# Paginate through replies
$ gh discussion view DC_abc123 --limit 10 --after CURSOR
# Open in browser
$ gh discussion view 123 --web
```

# [SEE ALSO](#SEE_ALSO)

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

Oct 2026

---

Document: gh-discussion-view(1) from gh 2.103.2-r0 (Chainguard OS)
Source: https://github.com/cli/cli
