GH-PROJECT-ITEM-LIST(1)
π gh-project-item-list β like, the whole manual but make it make sense π
Hey bestie, so this is the gh project item-list page from the GitHub CLI manual (that's gh-project-item-list(1) if you're being all formal about it), and I'm gonna walk you through it because honestly? It's giving "secretly very useful" and you deserve to know.
β¨ NAME β¨
gh-project-item-list β literally just lists the items in a project. That's it. That's the whole job. π
πΈ SYNOPSIS πΈ
gh project item-list [<number>] [flags]
You give it a project number (in brackets, so it's optional-ish, but likeβ¦ you'll want it), you sprinkle in some flags, and it goes off. β¨
π¦ DESCRIPTION π¦
So the actual deal: you're listing the items in a project. Periodt. π
But here's the fun part β if the API host supports it, you can use the --query option to do an β¨advanced searchβ¨. The full syntax lives over here if you wanna get into it:
https://docs.github.com/en/issues/planning-and-tracking-with-
projects/customizing-views-in-your-project/filtering-projects
(Yeah the URL wraps like that in the manual. Iconic of it, honestly. Don't come for me, come for the line break. π)
π OPTIONS π
Okay this is the part where I hold your hand through every single flag, no skips, no shortcuts. π«Ά
--field <stringArray>β the name of a field you want shown as an extra column. Cute little bonus column energy. π--field-id <stringArray>β same idea but you're passing the ID of the field instead of the name. For the ones who like precision. π―--format <string>β output format. The option is literally:{json}. That's the value. Slay. π₯-q,--jq <expression>β filter that JSON output using ajqexpression. Yes bestie, you can pipe it throughjq-style filtering right here. π§-L,--limit <int>(default30) β maximum number of items to fetch. Default is30, so don't act surprised when you get 30. π--owner <string>β login of the owner. Use"@me"for the current user. Your own stuff, instantly. π--query <string>β filter items using the Projects filter syntax, e.g."assignee:octocat -status:Done". This is where the main character energy really kicks in. β-t,--template <string>β format JSON output using a Go template; seegh help formatting. Fancy formatting, iykyk. π
π¦ EXIT CODES π¦
Vibe check on how it went:
0β successful execution. We ate. π1β error. Not the vibe. π2β command canceled. Someone hit the brakes. π4β authentication required. You gotta log in first, bestie. π
NOTE: specific commands may have additional exit codes. Refer to the command's help for more information. (So like, don't @ me if you see a number not on this list β check the command's own help. π)
π EXAMPLE π
Here are all of them, exactly as written, because I would never do you dirty like that:
# List the items in the current users's project "1"
$ gh project item-list 1 --owner "@me"
# List items assigned to a specific user
$ gh project item-list 1 --owner "@me" --query "assignee:monalisa"
# List open issues assigned to yourself
$ gh project item-list 1 --owner "@me" --query "assignee:@me is:issue is:open"
# List items with the "bug" label that are not done
$ gh project item-list 1 --owner "@me" --query "label:bug -status:Done"
# Show the "Status" and "Priority" field values as extra columns
$ gh project item-list 1 --owner "@me" --field "Status" --field "Priority"
(And yes, users's is literally in the original comment. I'm not fixing it, I'm preserving it. Historical artifact. ποΈ)
π«Ά SEE ALSO π«Ά
gh-project(1)β the parent page, go say hi π
Okay that's the whole thing!! No cap, every flag and every example made it in. πΈ
Sign-off time: this little masterpiece is from GitHub CLI v2.102.0, dated Oct 2026, and it's the GH-PROJECT-ITEM-LIST(1) page β go forth and list those items, bestie. π¦π
π¦ 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