GH-DISCUSSION-EDIT(1) GitHub CLI manual GH-DISCUSSION-EDIT(1)

# [NAME](#NAME)

gh-discussion-edit - Edit a discussion (preview)

# [SYNOPSIS](#SYNOPSIS)

**gh discussion edit {&lt;number&gt; | &lt;discussion-url&gt;} \[flags]**

# [DESCRIPTION](#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](#OPTIONS)

[**--add-label** **&lt;name&gt;**](#add_label)

Add labels by name

[**-b**, **--body** **&lt;string&gt;**](#b)

New body for the discussion

[**-F**, **--body-file** **&lt;string&gt;**](#F)

Read body text from file (use "-" to read from standard input)

[**-c**, **--category** **&lt;string&gt;**](#c)

New category name or slug for the discussion

[**--remove-label** **&lt;name&gt;**](#remove_label)

Remove labels by name

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

[**-t**, **--title** **&lt;string&gt;**](#t)

New title for the discussion

# [EXIT CODES](#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](#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](#SEE_ALSO)

[**gh-discussion(1)**](/man/os/gh/gh-discussion.1)

Oct 2026

---

Document: gh-discussion-edit(1) from gh 2.103.0-r0 (Chainguard OS)
Source: https://github.com/cli/cli
