LinuxCommandLibrary

gh-issue-create

create new GitHub issues with metadata

TLDR

Create issue interactively

$ gh issue create
copy
Create with title and body
$ gh issue create -t "[title]" -b "[body]"
copy
Create with labels
$ gh issue create -t "[title]" -l [bug] -l [urgent]
copy
Create and assign
$ gh issue create -t "[title]" -a [username]
copy
Create from template
$ gh issue create --template [bug_report.md]
copy
Create in specific repo
$ gh issue create -R [owner/repo] -t "[title]"
copy

SYNOPSIS

gh issue create [options]

DESCRIPTION

gh issue create creates a new GitHub issue with comprehensive metadata support. Issues can be created interactively with prompts or non-interactively with command-line flags for automation.
The command supports issue templates, which provide structured formats for bug reports, feature requests, or custom issue types. Templates ensure consistent information gathering. Labels categorize issues, assignees designate responsible parties, and milestones group related work.
Issues can be added directly to GitHub Projects and opened in a browser for immediate editing. The --web flag launches the browser-based creation form when more complex formatting is needed.

PARAMETERS

-t, --title title

Issue title.
-b, --body body
Issue body.
-l, --label label
Add labels.
-a, --assignee user
Assign users.
-m, --milestone name
Set milestone.
-p, --project name
Add to project.
--template file
Use template.
-R, --repo owner/repo
Repository.
-w, --web
Open in browser.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community