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

gh-discussion-list - List discussions in a repository (preview)

gh discussion list [flags]

List discussions in a GitHub repository. By default, only open discussions are shown.

Cursor for the next page of results
Filter by answered state
Filter by author
Filter by category name or slug
Filter JSON output using a jq expression
Output JSON with the specified fields
Filter by label
Maximum number of discussions to fetch
Order of results: {asc|desc}
Select another repository using the [HOST/]OWNER/REPO format
Search discussions with query
Sort by field: {created|updated}
Filter by state: {open|closed|all}
Format JSON output using a Go template; see "gh help formatting"
List discussions in the web browser

gh discussion ls

answerChosenAt, answerChosenBy, answered, author, body, category, closed, closedAt, createdAt, id, labels, locked, number, stateReason, title, updatedAt, url

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.

# List open discussions
$ gh discussion list
# List discussions with a specific category
$ gh discussion list --category General
# List closed discussions by author
$ gh discussion list --state closed --author monalisa
# List all discussions (closed or open) by label
$ gh discussion list --state all --label bug,enhancement
# List answered Q&A discussions as JSON
$ gh discussion list --answered --json number,title,url
# List unanswered Q&A discussions as JSON
$ gh discussion list --answered=false --json number,title,url

gh-discussion(1)

Jun 2026