OS Manuals

gh-discussion(1)

gh-discussion - Work with GitHub Discussions (preview)

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

gh-discussion - Work with GitHub Discussions (preview)

gh discussion <command> [flags]

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

Create a new discussion (preview)

List discussions in a repository (preview)

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

Edit a discussion (preview)

View a discussion (preview)

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

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.

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

gh(1)

Oct 2026

gh 2.102.0-r2 · os · ingested 2026-10-10