.nh .TH "GH-SEARCH-REPOS" "1" "Mar 2024" "" "GitHub CLI manual" .SH NAME .PP gh-search-repos - Search for repositories .SH SYNOPSIS .PP \fBgh search repos [] [flags]\fR .SH DESCRIPTION .PP Search for repositories on GitHub. .PP The command supports constructing queries using the GitHub search syntax, using the parameter and qualifier flags, or a combination of the two. .PP GitHub search syntax is documented at: \[la]https://docs.github.com/search\-github/searching\-on\-github/searching\-for\-repositories\[ra] .SH OPTIONS .TP \fB--archived\fR Filter based on the repository archived state {true|false} .TP \fB--created\fR \fB\fR Filter based on created at date .TP \fB--followers\fR \fB\fR Filter based on number of followers .TP \fB--forks\fR \fB\fR Filter on number of forks .TP \fB--good-first-issues\fR \fB\fR Filter on number of issues with the 'good first issue' label .TP \fB--help-wanted-issues\fR \fB\fR Filter on number of issues with the 'help wanted' label .TP \fB--include-forks\fR \fB\fR Include forks in fetched repositories: {false|true|only} .TP \fB-q\fR, \fB--jq\fR \fB\fR Filter JSON output using a jq expression .TP \fB--json\fR \fB\fR Output JSON with the specified fields .TP \fB--language\fR \fB\fR Filter based on the coding language .TP \fB--license\fR \fB\fR Filter based on license type .TP \fB-L\fR, \fB--limit\fR \fB (default 30)\fR Maximum number of repositories to fetch .TP \fB--match\fR \fB\fR Restrict search to specific field of repository: {name|description|readme} .TP \fB--number-topics\fR \fB\fR Filter on number of topics .TP \fB--order\fR \fB (default "desc")\fR Order of repositories returned, ignored unless '--sort' flag is specified: {asc|desc} .TP \fB--owner\fR \fB\fR Filter on owner .TP \fB--size\fR \fB\fR Filter on a size range, in kilobytes .TP \fB--sort\fR \fB (default "best-match")\fR Sort fetched repositories: {forks|help-wanted-issues|stars|updated} .TP \fB--stars\fR \fB\fR Filter on number of stars .TP \fB-t\fR, \fB--template\fR \fB\fR Format JSON output using a Go template; see "gh help formatting" .TP \fB--topic\fR \fB\fR Filter on topic .TP \fB--updated\fR \fB\fR Filter on last updated at date .TP \fB--visibility\fR \fB\fR Filter based on visibility: {public|private|internal} .TP \fB-w\fR, \fB--web\fR Open the search query in the web browser .SH EXAMPLE .EX # search repositories matching set of keywords "cli" and "shell" $ gh search repos cli shell # search repositories matching phrase "vim plugin" $ gh search repos "vim plugin" # search repositories public repos in the microsoft organization $ gh search repos --owner=microsoft --visibility=public # search repositories with a set of topics $ gh search repos --topic=unix,terminal # search repositories by coding language and number of good first issues $ gh search repos --language=go --good-first-issues=">=10" # search repositories without topic "linux" $ gh search repos -- -topic:linux # search repositories excluding archived repositories $ gh search repos --archived=false .EE .SH SEE ALSO .PP \fBgh-search(1)\fR