gh discussion preview command set
Introduced 2026-06-10 · score 0.98
HOW TO USE IT
When reviewing or maintaining repository discussions from the CLI, use `gh discussion` to list, view, create, edit, comment on, or reply to a discussion. Run `gh discussion --help` for command details.
gh discussion listgh discussion view 123 --commentsgh discussion comment <url>WHY THIS HELPS
When reviewing or maintaining repository discussions from the CLI, list, view, create, edit, comment on, or reply to a discussion.
REQUIREMENTS AND LIMITATIONS
- Version: v2.94.0
- Availability: Preview; subject to change without notice.
- discussion number (required): Discussion identifier for the documented view, edit, or comment examples.
- --comments: View discussion comments; for replies to a comment, pass the comment URL instead.
- comment URL (required): Use the comment URL to reply to that comment.
- Prerequisite: Authenticate with `gh auth login` or provide `GITHUB_TOKEN`.
- Docs conflict: The current manual documents additional identifiers and operations for `gh discussion view` and `comment`, including comment IDs and editing or deleting comments. These are broader than the v2.94.0 release note; this card uses the release-note examples.
FIRST-PARTY EVIDENCE
- https://github.com/cli/cli/releases/tag/v2.94.0
- https://cli.github.com/manual/gh_help_reference
- https://cli.github.com/manual/index
Check the installed version and the source before using it. Entry JSON