1GH-PROJECT-ITEM-EDIT(1) GitHub CLI manual GH-PROJECT-ITEM-EDIT(1)
2
3
4
6 gh-project-item-edit - Edit an item in a project
7
8
9
11 gh project item-edit [flags]
12
13
14
16 Edit either a draft issue or a project item. Both usages require the ID
17 of the item to edit.
18
19
20 For non-draft issues, the ID of the project is also required, and only
21 a single field value can be updated per invocation.
22
23
24 Remove project item field value using "--clear" flag.
25
26
27
29 --body <string>
30 Body of the draft issue item
31
32
33 --clear
34 Remove field value
35
36
37 --date <string>
38 Date value for the field (YYYY-MM-DD)
39
40
41 --field-id <string>
42 ID of the field to update
43
44
45 --format <string>
46 Output format: {json}
47
48
49 --id <string>
50 ID of the item to edit
51
52
53 --iteration-id <string>
54 ID of the iteration value to set on the field
55
56
57 --number <float32>
58 Number value for the field
59
60
61 --project-id <string>
62 ID of the project to which the field belongs to
63
64
65 --single-select-option-id <string>
66 ID of the single select option value to set on the field
67
68
69 --text <string>
70 Text value for the field
71
72
73 --title <string>
74 Title of the draft issue item
75
76
77
79 # edit an item's text field value
80 gh project item-edit --id <item-ID> --field-id <field-ID> --project-id <project-ID> --text "new text"
81
82 # clear an item's field value
83 gh project item-edit --id <item-ID> --field-id <field-ID> --project-id <project-ID> --clear
84
85
86
87
88
90 gh-project(1)
91
92
93
94 Oct 2023 GH-PROJECT-ITEM-EDIT(1)