GH-ISSUE-LIST(1)
π gh-issue-list β bestie's guide to listing issues π
okay so real talk, this page is from the GitHub CLI manual (yes, the gh thing, she's iconic, she's everywhere), and today we're learning gh-issue-list. buckle up bestie, it's giving "productivity" and honestly? ate.
β¨ NAME β¨
gh-issue-list β literally just lists issues in a repository. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
gh issue list [flags]
π DESCRIPTION π
So you wanna list issues in a GitHub repository? say less, main character. By default this only lists open issues β like, it's not gonna dump the whole graveyard on you unless you ask, and that's a vibe check it passes.
The search query syntax is documented here, iykyk:
https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests
And on supported GitHub hosts, you can use advanced issue search syntax in the --search query. no cap, it's real. more on advanced issue search over here:
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests#building-advanced-filters-for-issues
π OPTIONS π
okay this is the part where I list every single one because I'm not about to do you dirty by skipping the "boring" ones. there are no boring ones. all flags are valid and beautiful. π
--app <string>β filter by GitHub App author-a,--assignee <string>β filter by assignee-A,--author <string>β filter by author (and psst: use--appif you're filtering by a GitHub App)-q,--jq <expression>β filter the JSON output using ajqexpression--json <fields>β output JSON with the fields you specify-l,--label <strings>β filter by label-L,--limit <int>β maximum number of issues to fetch, and the default is30(yes, thirty, that's the number, don't come for me)--mention <string>β filter by mention-m,--milestone <string>β filter by milestone number or title-S,--search <query>β search issues with a query-s,--state <string>β filter by state:{open|closed|all}, default is"open"-t,--template <string>β format the JSON output using a Go template (go readgh help formattingfor that one)--type <name>β filter by issue type name-w,--webβ list issues in the web browser instead of the terminal, fancy
π¦ OPTIONS INHERITED FROM PARENT COMMANDS π¦
the parents said "you're taking these with you" and honestly? fair.
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. note the square brackets, they're load-bearing. π
β ALIASES β
she has a nickname, obviously:
gh issue ls
π₯ JSON FIELDS π₯
here's the full roster of fields you can ask for β every single one, in order, slay:
assignees, author, blockedBy, blocking, body, closed, closedAt,
closedByPullRequestsReferences, comments, createdAt, id, isPinned,
issueType, labels, milestone, number, parent, projectCards,
projectItems, reactionGroups, state, stateReason, subIssues,
subIssuesSummary, title, updatedAt, url
π EXIT CODES π
when you bounce, here's what the number means:
0β successful execution π1β error π2β command canceled4β authentication required π
NOTE: specific commands may have additional exit codes. refer to the command's help for more info β don't @ me, @ the help.
πΈ EXAMPLE πΈ
every single one of these works, copy-paste away bestie:
$ gh issue list --label "bug" --label "help wanted"
$ gh issue list --author monalisa
$ gh issue list --app dependabot
$ gh issue list --assignee "@me"
$ gh issue list --milestone "The big 1.0"
$ gh issue list --search "error no:assignee sort:created-asc"
$ gh issue list --state all
$ gh issue list --type Bug
notice the --label twice in the first one? yeah, multiple labels, she contains multitudes. and "@me" is you. it's always been you. πͺ
π SEE ALSO π
the family:
and that's the page!! π this was GitHub CLI v2.102.0, dated Oct 2026 β like, from the future, but make it slay. go list some issues, you're literally the main character of your repo. πβ¨π
π¦ 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