GH-REPO-LIST(1)

πŸ’… gh-repo-list(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so real quick: this is gh-repo-list(1) from the GitHub CLI manual, and it's literally the page that shows you all the repos a person or an org owns. grab a snack, we're listing πŸ“


✨ NAME ✨

gh-repo-list β€” list repositories owned by a user or organization 🫢

✨ SYNOPSIS ✨

gh repo list [<owner>] [flags]

✨ DESCRIPTION ✨

Lists repositories owned by a user or an organization. that's it, that's the vibe πŸ‘‘

⚠️ okay this part matters so listen up: 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. no cap, it stays in its lane πŸ’…

✨ OPTIONS ✨

  • --archived β€” show only archived repositories πŸ—„οΈ
  • --fork β€” show only forks 🍴
  • -q, --jq <expression> β€” filter JSON output using a jq expression ✨
  • --json <fields> β€” output JSON with the specified fields 🧾
  • -l, --language <string> β€” filter by primary coding language πŸ’»
  • -L, --limit <int> (default 30) β€” maximum number of repositories to list πŸ”’
  • --no-archived β€” omit archived repositories πŸ™ˆ
  • --source β€” show only non-forks 🌱
  • -t, --template <string> β€” format JSON output using a Go template; see gh help formatting πŸŽ€
  • --topic <strings> β€” filter by topic 🏷️
  • --visibility <string> β€” filter by repository visibility: {public|private|internal} πŸ‘€

✨ ALIASES ✨

gh repo ls β€” same energy, shorter typing, iykyk πŸ’«

✨ JSON FIELDS ✨

these are the fields you can ask for with --json, and yes, it's a lot, but she ate πŸ”₯

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

✨ 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 ✨

gh-repo(1) β€” go say hi to the parent page πŸ¦‹


and that's the whole page, bestie πŸ’– this was GitHub CLI v2.102.0, dated Oct 2026 β€” iconic, timeless, periodt πŸ‘‘

πŸ“¦ where this page comes from