.nh .TH "GH-REPO-LIST" "1" "Oct 2024" "GitHub CLI 2.58.0" "GitHub CLI manual" .SH NAME gh-repo-list - List repositories owned by user or organization .SH SYNOPSIS \fBgh repo list [] [flags]\fR .SH DESCRIPTION List repositories owned by a user or organization. .PP Note that the list will only include repositories owned by the provided argument, and the \fB--fork\fR or \fB--source\fR flags will not traverse ownership boundaries. For example, when listing the forks in an organization, the output would not include those owned by individual users. .SH OPTIONS .TP \fB--archived\fR Show only archived repositories .TP \fB--fork\fR Show only forks .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-l\fR, \fB--language\fR \fB\fR Filter by primary coding language .TP \fB-L\fR, \fB--limit\fR \fB (default 30)\fR Maximum number of repositories to list .TP \fB--no-archived\fR Omit archived repositories .TP \fB--source\fR Show only non-forks .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 by topic .TP \fB--visibility\fR \fB\fR Filter by repository visibility: {public|private|internal} .SH ALIASES gh repo ls .SH JSON FIELDS \fBassignableUsers\fR, \fBcodeOfConduct\fR, \fBcontactLinks\fR, \fBcreatedAt\fR, \fBdefaultBranchRef\fR, \fBdeleteBranchOnMerge\fR, \fBdescription\fR, \fBdiskUsage\fR, \fBforkCount\fR, \fBfundingLinks\fR, \fBhasDiscussionsEnabled\fR, \fBhasIssuesEnabled\fR, \fBhasProjectsEnabled\fR, \fBhasWikiEnabled\fR, \fBhomepageUrl\fR, \fBid\fR, \fBisArchived\fR, \fBisBlankIssuesEnabled\fR, \fBisEmpty\fR, \fBisFork\fR, \fBisInOrganization\fR, \fBisMirror\fR, \fBisPrivate\fR, \fBisSecurityPolicyEnabled\fR, \fBisTemplate\fR, \fBisUserConfigurationRepository\fR, \fBissueTemplates\fR, \fBissues\fR, \fBlabels\fR, \fBlanguages\fR, \fBlatestRelease\fR, \fBlicenseInfo\fR, \fBmentionableUsers\fR, \fBmergeCommitAllowed\fR, \fBmilestones\fR, \fBmirrorUrl\fR, \fBname\fR, \fBnameWithOwner\fR, \fBopenGraphImageUrl\fR, \fBowner\fR, \fBparent\fR, \fBprimaryLanguage\fR, \fBprojects\fR, \fBprojectsV2\fR, \fBpullRequestTemplates\fR, \fBpullRequests\fR, \fBpushedAt\fR, \fBrebaseMergeAllowed\fR, \fBrepositoryTopics\fR, \fBsecurityPolicyUrl\fR, \fBsquashMergeAllowed\fR, \fBsshUrl\fR, \fBstargazerCount\fR, \fBtemplateRepository\fR, \fBupdatedAt\fR, \fBurl\fR, \fBusesCustomOpenGraphImage\fR, \fBviewerCanAdminister\fR, \fBviewerDefaultCommitEmail\fR, \fBviewerDefaultMergeMethod\fR, \fBviewerHasStarred\fR, \fBviewerPermission\fR, \fBviewerPossibleCommitEmails\fR, \fBviewerSubscription\fR, \fBvisibility\fR, \fBwatchers\fR .SH EXIT CODES 0: Successful execution .PP 1: Error .PP 2: Command canceled .PP 4: Authentication required .PP NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. .SH SEE ALSO \fBgh-repo(1)\fR