.nh .TH "GH-DISCUSSION-EDIT" "1" "Jun 2026" "" "GitHub CLI manual" .SH NAME gh-discussion-edit - Edit a discussion (preview) .SH SYNOPSIS \fBgh discussion edit { | } [flags]\fR .SH DESCRIPTION Edit a GitHub Discussion. .PP Without flags, the command runs interactively when connected to a terminal. Use flags to update specific fields non-interactively. .SH OPTIONS .TP \fB--add-label\fR \fB\fR Add labels by name .TP \fB-b\fR, \fB--body\fR \fB\fR New body for the discussion .TP \fB-F\fR, \fB--body-file\fR \fB\fR Read body text from file (use "-" to read from standard input) .TP \fB-c\fR, \fB--category\fR \fB\fR New category name or slug for the discussion .TP \fB--remove-label\fR \fB\fR Remove labels by name .TP \fB-R\fR, \fB--repo\fR \fB<[HOST/]OWNER/REPO>\fR Select another repository using the [HOST/]OWNER/REPO format .TP \fB-t\fR, \fB--title\fR \fB\fR New title for the discussion .SH EXIT CODES 0: Successful execution .PP 1: Error .PP 2: Command canceled .PP 4: Authentication required .PP NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. .SH EXAMPLE .EX # 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" .EE .SH SEE ALSO \fBgh-discussion(1)\fR