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

# [NAME](#NAME)

gh-discussion-create - Create a new discussion (preview)

# [SYNOPSIS](#SYNOPSIS)

**gh discussion create \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Create a new GitHub Discussion in a repository.

With **--title**, **--body** (or **--body-file**), and **--category**, a discussion is created non-interactively. Omitting any of these flags triggers interactive prompts when connected to a terminal.

# [OPTIONS](#OPTIONS)

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

Body for the discussion

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

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

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

Category name or slug for the discussion

[**-l**, **--label** **&lt;strings&gt;**](#l)

Labels to apply to the discussion

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

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

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

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)

```
# Create interactively
$ gh discussion create
# Create non-interactively
$ gh discussion create --title "My question" --category "Q&A" --body "Details here"
```

# [SEE ALSO](#SEE_ALSO)

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

Oct 2026

---

Document: gh-discussion-create(1) from gh 2.103.3-r1 (Chainguard OS)
Source: https://github.com/cli/cli
