2025-03-14 21:59:59 -06:00
|
|
|
# gh issue create
|
|
|
|
|
|
|
|
|
|
> Create GitHub issues on a repository.
|
|
|
|
|
> More information: <https://cli.github.com/manual/gh_issue_create>.
|
|
|
|
|
|
|
|
|
|
- Create a new issue against the current repository interactively:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue with the `bug` label interactively:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-l|--label]}} "bug"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue interactively and assign it to the specified users:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-a|--assignee]}} {{user1,user2,...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue with a title, body and assign it to the current user:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-t|--title]}} "{{title}}" {{[-b|--body]}} "{{body}}" {{[-a|--assignee]}} "@me"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue interactively, reading the body text from a file:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-F|--body-file]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue in the default web browser:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-w|--web]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Display help:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh issue {{[new|create]}} {{[-h|--help]}}`
|