GH-SEARCH(1)

πŸ’… GH-SEARCH β€” the "search all of GitHub" era ✨

okay bestie, welcome to gh-search, straight out of the GitHub CLI manual πŸŽ€ β€” this is the portal that lets you search for repositories, issues, and pull requests across all of GitHub. buckle up πŸ¦‹


🌈 SYNOPSIS

gh search <command> [flags]

πŸ” DESCRIPTION

Search across all of GitHub. yes, the whole thing. it's giving main character energy πŸ‘‘

πŸ™ˆ Excluding search results that match a qualifier

So in a browser, the GitHub search syntax lowkey supports excluding results that match a search qualifier β€” you just prefix the qualifier with a hyphen. iconic. for example, if you wanted to search for issues that do not have the label "bug", you'd use -label:bug as a search qualifier ✨

gh supports this syntax in gh search too, but ngl it needs extra command line arguments, because the hyphen would otherwise get interpreted as a command line flag (rude of it, honestly) since it begins with a hyphen πŸ’€

On Unix-like systems, you can use the -- argument to say "hey, the arguments that follow are not a flag, they're a query string." like so:

$ gh search issues -- "my-search-query -label:bug"

On PowerShell, you have to use both the --% argument and the -- argument to get the same effect. for example:

$ gh --% search issues -- "my search query -label:bug"

See the following for more information 🫢


✨ AVAILABLE COMMANDS ✨


πŸšͺ EXIT CODES πŸšͺ

  • 0 β€” successful execution πŸŽ‰
  • 1 β€” error 😭
  • 2 β€” command canceled πŸ™…
  • 4 β€” authentication required πŸ”
NOTE: specific commands may have additional exit codes. refer to the command's help for more information πŸ’…

πŸ‘€ SEE ALSO


that's the whole vibe, bestie πŸ’– this page is from GitHub CLI v2.102.0, dated Oct 2026 β€” go forth and search, no cap 🫢🌈

πŸ“¦ where this page comes from