gh project item-edit addresses fields and single-select options by name
Introduced 2026-07-31 · score 0.98
HOW TO USE IT
When editing a GitHub project item by field and single-select option name, run `gh project item-edit` with the project number, owner, item URL, field name, and option name.
gh project item-edit <project-number> --owner <owner> --url <issue-or-pull-request-url> --field "Status" --value "In Progress"WHY THIS HELPS
Edit a GitHub project item by setting a field using its name.
REQUIREMENTS AND LIMITATIONS
- Version: v2.97.0
- <project-number> (required): Project number to edit.
- --owner <owner> (required): Project owner's login; use `@me` for the current user.
- --url <issue-or-pull-request-url> (required): URL of the issue or pull request whose project item to edit.
- --field <string> (required): Name of the field to update.
- --value <field-value> (required): Value to set for the named field; for a single-select field, use the option name.
- Prerequisite: The GitHub CLI token needs the `project` scope. Check with `gh auth status`; add it with `gh auth refresh -s project`.
FIRST-PARTY EVIDENCE
- https://github.com/cli/cli/releases/tag/v2.97.0
- https://cli.github.com/manual/gh_project_item-edit
- https://cli.github.com/manual/gh_project
Check the installed version and the source before using it. Entry JSON