GH-DISCUSSION(1)
π¬ gh-discussion β bestie's guide to GitHub Discussions (preview!!)
okay so this is gh-discussion from the GitHub CLI manual, and yes it is in preview so likeβ¦ behave accordingly π
gh discussion <command> [flags]
πΈ DESCRIPTION πΈ
Working with discussions in the GitHub CLI is in preview and subject to change without notice. no cap β that means it could shift under your feet at any moment, so don't come for me if the flags ghost you later π
π«Ά GENERAL COMMANDS π«Ά
gh-discussion-create(1)β Create a new discussion (preview) β¨ like literally bringing a whole conversation into existence, main character energygh-discussion-list(1)β List discussions in a repository (preview) π the vibe check of "what's everyone talking about in here"
π― TARGETED COMMANDS π―
gh-discussion-comment(1)β Add, edit, or delete a comment or a reply on a discussion (preview) π¬ yeah you can add, edit, and delete β three moods, one commandgh-discussion-edit(1)β Edit a discussion (preview) βοΈ glow-up timegh-discussion-view(1)β View a discussion (preview) π¦ just vibing and reading, no notes
β OPTIONS β
-R,--repo <[HOST/]OWNER/REPO>β Select another repository using the[HOST/]OWNER/REPOformat π notice the format stays exactly like that, square brackets and slashes included, don't get creative
π EXIT CODES π
0: Successful execution β slay, you ate π1: Error β it's giving "something went wrong" π2: Command canceled β you hit Ctrl+C or otherwise bailed, no judgement π«Ά4: Authentication required β you gotta log in first, bestie π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. iykyk β always check the specific command's own help
π EXAMPLE π
$ gh discussion list
$ gh discussion create --category "General" --title "Hello" --body "Hello World!"
$ gh discussion view 123
literally just list 'em, create one with a --category of "General" and a --title of "Hello" and a --body of "Hello World!", then view number 123. iconic π
π SEE ALSO π
gh(1)β the parent, the blueprint, the icon π
that's the whole page, bestie! brought to you by GitHub CLI v2.102.0, dated Oct 2026 πΈ go forth and discuss π β¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms