GH-DISCUSSION-EDIT(1) GitHub CLI manual GH-DISCUSSION-EDIT(1) NAME gh-discussion-edit - Edit a discussion (preview) SYNOPSIS gh discussion edit { | } [flags] DESCRIPTION Edit a GitHub Discussion. Without flags, the command runs interactively when connected to a terminal. Use flags to update specific fields non-interactively. OPTIONS --add-label Add labels by name -b, --body New body for the discussion -F, --body-file Read body text from file (use "-" to read from standard input) -c, --category New category name or slug for the discussion --remove-label Remove labels by name -R, --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format -t, --title New title for the discussion 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 # Edit interactively $ gh discussion edit 123 # Update title, body, and category $ gh discussion edit 123 --title "Updated title" --body "Updated body" --category "Ideas" # Update body from a file $ gh discussion edit 123 --body-file body.md # Add and remove labels $ gh discussion edit 123 --add-label "bug,help wanted" --remove-label "stale" SEE ALSO gh-discussion(1) Jun 2026 GH-DISCUSSION-EDIT(1)