GH-PROJECT-ITEM-EDIT(1)
β¨ gh-project-item-edit(1) β¨
okay so bestie, this is the gh-project-item-edit page from the GitHub CLI manual β v2.102.0 era, October 2026 vibes β and it's literally the glow-up button for a single item in a GitHub project. let's go π
πΈ NAME πΈ
gh-project-item-edit β edit an item in a project. that's it. that's the whole thing. π
π¦ SYNOPSIS π¦
gh project item-edit [<number>] [flags]
like, you can pass a project number, and you can pass flags. both iconic. both allowed. β¨
π DESCRIPTION π
So what are we even doing here? You're editing a draft issue or a project item. That's the assignment. π«Ά
The usual way to select the item and the field is by name, and here's the little recipe: pass the project number plus --owner, point at the item with its issue or pull request --url, and name the field with --field. For single-select fields, --value is the option name. easy peasy, no cap. π
For scripts and machine use (iykyk, robot mode π€), you can also pass GraphQL node IDs directly with --id, --field-id and --project-id β and, for single-select fields, --single-select-option-id. very main character energy for your automation. β‘
β οΈ heads up bestie:--urlis the issue or pull request URL, not a project URL, so its owner may differ from the project's owner!--owneris what selects the project. don't mix them up, I'm begging π
Also super important: for non-draft issues, only a single field value can be updated per invocation. one field. one shot. periodt. π―
And when you need to yeet a value? Remove a project item field value with --clear. gone. deleted. not me being dramatic π
π OPTIONS π
--body <string>β the body of the draft issue item. give it some ~content~ βοΈ--clearβ remove the field value. bye bye value π«‘--date <string>β date value for the field, formattedYYYY-MM-DD. yes, that exact format, don't get creative ποΈ--field <string>β name of the field to update. your friendly human-readable pick πΈ--field-id <string>β ID of the field to update. the machine-readable twin π--format <string>β output format:{json}. sleek. structured. love that for you β¨--id <string>β ID of the item to edit π--iteration-id <string>β ID of the iteration value to set on the field π-q,--jq <expression>β filter JSON output using ajqexpression. chef's kiss for pipelines π§βπ³--number <float>(default0) β number value for the field. yes it's a float, yes the default is0π’--owner <string>β login of the owner. use"@me"for the current user π«΅--project-id <string>β ID of the project to which the field belongs to ποΈ--single-select-option-id <string>β ID of the single select option value to set on the field ποΈ-t,--template <string>β format JSON output using a Go template; seegh help formattingπ¨--text <string>β text value for the field π--title <string>β title of the draft issue item π·οΈ--url <string>β URL of the issue or pull request whose project item to edit π--value <--field>β value to set on the field named by--field. note the cute little<--field>β it's teaming up with its bestie π«Ά
π EXIT CODES π
vibe check, results edition:
0: successful execution β slay! π1: error β it's giving oops π2: command canceled β you hit the brakes π4: authentication required β log in first, bestie π
π NOTE: specific commands may have additional exit codes. refer to the command's help for more information. always check the receipts π
π₯ EXAMPLE π₯
# Set the "Status" field to "In Progress" for an issue on monalisa's project 1
$ gh project item-edit 1 --owner monalisa --url https://github.com/monalisa/myproject/issues/23 --field "Status" --value "In Progress"
# Edit an item's text field value by node ID (machine / scripted use)
$ gh project item-edit --id <item-id> --field-id <field-id> --project-id <project-id> --text "new text"
# Clear an item's field value by node ID
$ gh project item-edit --id <item-id> --field-id <field-id> --project-id <project-id> --clear
ate. no crumbs. π
π SEE ALSO π
gh-project(1)β the whole project family, go say hi π
π that's the whole page, bestie π β brought to you by GitHub CLI v2.102.0, dated October 2026. go edit some items, you absolute icon. ππ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms