GH-PROJECT-ITEM-ADD(1)
π gh-project-item-add(1) β the GitHub CLI manual, bestie edition π
okay so real talk: this is the gh project item-add page from the GitHub CLI manual, and it's genuinely one of the most useful little gremlins in the whole toolkit. it does exactly one thing and it does it iconically β¨
β¨ NAME β¨
gh-project-item-add β add a pull request or an issue to a project π«Ά
like, you got a PR or an issue just sitting there, not on any project board, looking real lonely? this command is the matchmaker. no cap.
π¦ SYNOPSIS π¦
gh project item-add [<number>] [flags]
so it's gh project item-add, then optionally a <number> β that's the project number, and it's in square brackets so it's optional, bestie, don't come for me β and then whatever [flags] you feel like sprinkling in π
πΈ OPTIONS πΈ
okay here's the whole menu, and yes every single one is important, we do not skip flags in this house π
--format <string>β sets the output format. the only documented value here is{json}, so if you're a machine-readable kinda girlie, this is your moment β¨-q,--jq <expression>β filters the JSON output using ajqexpression`. very main character, very "i only want three fields out of this". you know the vibes π§--owner <string>β the login of the owner. and ooh, cute detail: use"@me"for the current user π (yes,@meis literally the string, keep the quotes, slay)-t,--template <string>β formats the JSON output using a Go template. check"gh help formatting"for the deets, iykyk π₯--url <string>β the URL of the issue or pull request you want to add to the project. this is the actual thing you're adding, so like... don't skip it π
π EXIT CODES π
vibe check on how it went, in number form:
0β successful execution π we ate, no crumbs1β error π it's giving "something went wrong"2β command canceled π«₯ you (or something) hit stop4β authentication required π go log in, bestie
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. so like, always read your own command's help, fr fr π
π EXAMPLE π
here's a real one, copy it, love it, run it:
# Add an item to monalisa's project "1"
$ gh project item-add 1 --owner monalisa --url https://github.com/monalisa/myproject/issues/23
see? project number 1, owner monalisa, and boom β issue 23 is on the board. iconic behavior, honestly π
π SEE ALSO π
gh-project(1)β the wholegh projectfamily, go say hi to its siblings π¦
and that's the whole page!! soooo much love to the fine folks behind this β this page is from the GitHub CLI, version v2.102.0, dated Oct 2026 π go forth and add items to projects, you absolute legend π
π¦ 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