Scroll to navigation

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

NAME

gh-issue-create - Create a new issue

SYNOPSIS

gh issue create [flags]

DESCRIPTION

Create an issue on GitHub.

Adding an issue to projects requires authorization with the project scope. To authorize, run gh auth refresh -s project.

OPTIONS

Assign people by their login. Use "@me" to self-assign.

Supply a body. Will prompt for one otherwise.

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

Add labels by name

Add the issue to a milestone by name

Add the issue to projects by name

Recover input from a failed run of create

Template name to use as starting body text

Supply a title. Will prompt for one otherwise.

Open the browser to create an issue

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

$ gh issue create --title "I found a bug" --body "Nothing works"
$ gh issue create --label "bug,help wanted"
$ gh issue create --label bug --label "help wanted"
$ gh issue create --assignee monalisa,hubot
$ gh issue create --assignee "@me"
$ gh issue create --project "Roadmap"

SEE ALSO

gh-issue(1)

Apr 2024 GitHub CLI v2.48.0