1GH-ISSUE-CREATE(1) GitHub CLI manual GH-ISSUE-CREATE(1)
2
3
4
6 gh-issue-create - Create a new issue
7
8
9
11 gh issue create [flags]
12
13
14
16 Create an issue on GitHub.
17
18
19 Adding an issue to projects requires authorization with the "project"
20 scope. To authorize, run "gh auth refresh -s project".
21
22
23
25 -a, --assignee <login>
26 Assign people by their login. Use "@me" to self-assign.
27
28
29 -b, --body <string>
30 Supply a body. Will prompt for one otherwise.
31
32
33 -F, --body-file <file>
34 Read body text from file (use "-" to read from standard input)
35
36
37 -l, --label <name>
38 Add labels by name
39
40
41 -m, --milestone <name>
42 Add the issue to a milestone by name
43
44
45 -p, --project <name>
46 Add the issue to projects by name
47
48
49 --recover <string>
50 Recover input from a failed run of create
51
52
53 -T, --template <name>
54 Template name to use as starting body text
55
56
57 -t, --title <string>
58 Supply a title. Will prompt for one otherwise.
59
60
61 -w, --web
62 Open the browser to create an issue
63
64
65
67 -R, --repo <[HOST/]OWNER/REPO>
68 Select another repository using the [HOST/]OWNER/REPO format
69
70
71
73 $ gh issue create --title "I found a bug" --body "Nothing works"
74 $ gh issue create --label "bug,help wanted"
75 $ gh issue create --label bug --label "help wanted"
76 $ gh issue create --assignee monalisa,hubot
77 $ gh issue create --assignee "@me"
78 $ gh issue create --project "Roadmap"
79
80
81
82
83
85 gh-issue(1)
86
87
88
89 Oct 2023 GH-ISSUE-CREATE(1)