Creating GitHub Issues from CLI with gh issue create

Tadashi Shigeoka ·  Thu, May 4, 2023

I’d like to introduce the gh issue create command for creating GitHub issues from the CLI.

GitHub | ギットハブ

Background: Want to Bulk Create GitHub Issues from CLI

I had a need to generate many GitHub issues, so I tried using the gh issue create command that can be executed from the CLI.

Creating Issues with gh issue create

Here’s a sample script for creating GitHub issues with the gh issue create command and the issue that was created:

gh issue create \\
--title "I found a bug" \\
--body "Nothing works" \\
--label "bug,help wanted" \\
--assignee "@me" \\
--project "sandbox project" \\
--repo "codenote-net/sandbox"

I found a bug · Issue #12 · codenote-net/sandbox

That’s all from the Gemba, where I want to make use of the gh issue create command for adding GitHub issues from the CLI.

Reference Information