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
|
Create a new discussion (preview) |
|---|---|
|
List discussions in a repository (preview) |
Targeted commands
|
Add, edit, or delete a comment or a reply on a discussion (preview) |
|---|---|
|
Edit a discussion (preview) |
|
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