gh api -X POST /repos/owner/repo/issues --field title='Bug' --field body='Details'

Category: GitHub CLI

gh api -X POST /repos/owner/repo/issues --field title='Bug' --field body='Details'

Create a GitHub issue via POST request using the API

Creates a GitHub issue via a POST API call, passing fields as key-value pairs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.