Text of cli.github.com › manual › gh_discussion_create as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh discussion create gh discussion create [flags] 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 -b , --body <string> Body for the discussion -F , --body-file <string> Read body text from file (use "-" to read from stdin) -c , --category <string> Category name or slug for the discussion -l , --label <strings> Labels to apply to the discussion -R , --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format -t , --title <string> Title for the discussion Examples # Create interactively $ gh discussion create # Create non-interactively $ gh discussion create --title "My question" --category "Q&A" --body "Details here" See also gh discussion