GH-REPO-VIEW(1)
π¦ GH-REPO-VIEW(1) β bestie's guide to gh repo view π
okay so real quick β this is straight out of the GitHub CLI manual, and it's the page for gh-repo-view, which lowkey does exactly what it says on the tin: it lets you look at a repository. that's it. that's the vibe. β¨
β¨ NAME β¨
gh-repo-view β view a repository π
π SYNOPSIS π
gh repo view [<repository>] [flags]
πΈ DESCRIPTION πΈ
so what this does is display the description and the README of a GitHub repository. that's the whole main character move. π«Ά
With no argument, the repository for the current directory is displayed. no cap β you just run it and it knows where you are. π
With --web, open the repository in a web browser instead. like, take it to the browser. slay. π
With --branch, view a specific branch of the repository. because sometimes you want a specific branch, iykyk. πΏ
π OPTIONS π
-b,--branch <string>β View a specific branch of the repository β¨-q,--jq <expression>β Filter JSON output using a jq expression π--json <fields>β Output JSON with the specified fields π§Ύ-t,--template <string>β Format JSON output using a Go template; see "gh help formatting" π-w,--webβ Open a repository in the browser π
π§ JSON FIELDS π§
okay so this is the big list β these are literally all the fields you can ask for. no skipping, bestie, here's every single one fr fr:
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
that's the list. all of it. go wild. π₯π
π 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 check that one out too, bestie π
okay and one last thing β the official deets so you know this is legit: this is GitHub CLI v2.102.0, dated Oct 2026. πβ¨ that's the sign-off, mwah, go view some repos π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms