gh-discussion(1)

gh-discussion1

Work with github discussions (preview)

Usage

gh discussion <command> [flags]

Overview

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 status

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.

Examples

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

From github-cli 2.102.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.