gh-discussion - Man Page

Work with GitHub Discussions (preview)

Synopsis

gh discussion <command> [flags]

Description

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

General Commands

gh-discussion-create(1)

Create a new discussion (preview)

gh-discussion-list(1)

List discussions in a repository (preview)

Targeted Commands

gh-discussion-comment(1)

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

gh-discussion-edit(1)

Edit a discussion (preview)

gh-discussion-view(1)

View a discussion (preview)

Options

-R, --repo <[HOST/]OWNER/REPO>

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

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

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

See Also

gh(1)

Referenced By

gh(1), gh-discussion-comment(1), gh-discussion-create(1), gh-discussion-edit(1), gh-discussion-list(1), gh-discussion-view(1).

Jun 2026 GitHub CLI manual