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

# [NAME](#NAME)

gh-discussion - Work with GitHub Discussions (preview)

# [SYNOPSIS](#SYNOPSIS)

**gh discussion &lt;command&gt; \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Working with discussions in the GitHub CLI is in preview and subject to change without notice.

# [GENERAL COMMANDS](#GENERAL_COMMANDS)

[**gh-discussion-create(1)**](#gh_discussion_create%281%29)

Create a new discussion (preview)

[**gh-discussion-list(1)**](#gh_discussion_list%281%29)

List discussions in a repository (preview)

# [TARGETED COMMANDS](#TARGETED_COMMANDS)

[**gh-discussion-comment(1)**](#gh_discussion_comment%281%29)

Add, edit, or delete a comment or a reply on a discussion (preview)

[**gh-discussion-edit(1)**](#gh_discussion_edit%281%29)

Edit a discussion (preview)

[**gh-discussion-view(1)**](#gh_discussion_view%281%29)

View a discussion (preview)

# [OPTIONS](#OPTIONS)

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

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

# [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)

```
$ gh discussion list
$ gh discussion create --category "General" --title "Hello" --body "Hello World!"
$ gh discussion view 123
```

# [SEE ALSO](#SEE_ALSO)

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

Oct 2026

---

Document: gh-discussion(1) from gh 2.102.0-r1 (Chainguard OS)
Source: https://github.com/cli/cli
