OS Manuals

gh-repo-list(1)

gh-repo-list - List repositories owned by user or organization

GH-REPO-LIST(1) GitHub CLI manual GH-REPO-LIST(1)

gh-repo-list - List repositories owned by user or organization

gh repo list [<owner>] [flags]

List repositories owned by a user or organization.

Note that the list will only include repositories owned by the provided argument, and the --fork or --source 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.

Show only archived repositories

Show only forks

Filter JSON output using a jq expression

Output JSON with the specified fields

Filter by primary coding language

Maximum number of repositories to list

Omit archived repositories

Show only non-forks

Format JSON output using a Go template; see "gh help formatting"

Filter by topic

Filter by repository visibility: {public|private|internal}

gh repo ls

archivedAt, assignableUsers, codeOfConduct, contactLinks, createdAt, defaultBranchRef, deleteBranchOnMerge, description, diskUsage, forkCount, fundingLinks, hasDiscussionsEnabled, hasIssuesEnabled, hasProjectsEnabled, hasWikiEnabled, homepageUrl, id, isArchived, isBlankIssuesEnabled, isEmpty, isFork, isInOrganization, isMirror, isPrivate, isSecurityPolicyEnabled, isTemplate, isUserConfigurationRepository, issueTemplates, issues, labels, languages, latestRelease, licenseInfo, mentionableUsers, mergeCommitAllowed, milestones, mirrorUrl, name, nameWithOwner, openGraphImageUrl, owner, parent, primaryLanguage, projects, projectsV2, pullRequestTemplates, pullRequests, pushedAt, rebaseMergeAllowed, repositoryTopics, securityPolicyUrl, squashMergeAllowed, sshUrl, stargazerCount, templateRepository, updatedAt, url, usesCustomOpenGraphImage, viewerCanAdminister, viewerDefaultCommitEmail, viewerDefaultMergeMethod, viewerHasStarred, viewerPermission, viewerPossibleCommitEmails, viewerSubscription, visibility, watchers

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.

gh-repo(1)

Sep 2026

gh 2.101.0-r1 · os · ingested 2026-09-30