![]() |
![]()
| ![]() |
![]()
NAMEgh-search-repos - Search for repositories SYNOPSISgh search repos [<query>] [flags] DESCRIPTIONSearch for repositories on GitHub. The command supports constructing queries using the GitHub search syntax, using the parameter and qualifier flags, or a combination of the two. GitHub search syntax is documented at: ⟨https://docs.github.com/search-github/searching-on-github/searching-for-repositories⟩ OPTIONS
JSON FIELDScreatedAt, defaultBranch, description, forksCount, fullName, hasDownloads, hasIssues, hasPages, hasProjects, hasWiki, homepage, id, isArchived, isDisabled, isFork, isPrivate, language, license, name, openIssuesCount, owner, pushedAt, size, stargazersCount, updatedAt, url, visibility, watchersCount EXIT CODES0: 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. EXAMPLE# 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 SEE ALSOgh-search(1)
|