GH-REPO-AUTOLINK-VIEW(1)

okay so real quick, this is a page from the GitHub CLI manual (gh), and it's all about peeking at one single autolink reference in a repo. no cap, it's a tiny little command and honestly? iconic for it.


✨ NAME ✨

gh-repo-autolink-view β€” literally just: view an autolink reference πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

gh repo autolink view <id> [flags]

the way you hand it an <id> and some optional [flags]… main character energy fr fr.


🌸 DESCRIPTION 🌸

View an autolink reference for a repository. that's it, that's the whole vibe. one reference, up close, like a vibe check but for autolinks πŸ’…


πŸ’– OPTIONS πŸ’–

  • -q, --jq <expression> β€” filter that JSON output using a jq expression ✨ you get exactly the fields you want, none of the extras
  • --json <fields> β€” output JSON with the specified fields 🫢
  • -t, --template <string> β€” format JSON output using a Go template; see gh help formatting πŸŽ€ (yes, go read that other help page, it's worth it)

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • -R, --repo <[HOST/]OWNER/REPO> β€” select another repository using the [HOST/]OWNER/REPO format πŸ’œ pointing at a whole different repo, no big deal

⭐ JSON FIELDS ⭐

the fields you can ask for are literally these four, and they are:

  • id
  • isAlphanumeric
  • keyPrefix
  • urlTemplate

πŸ”₯ EXIT CODES πŸ”₯

  • 0 β€” successful execution πŸŽ‰ slay
  • 1 β€” error 😭 it's giving oops
  • 2 β€” command canceled πŸ™ˆ
  • 4 β€” authentication required πŸ”‘ log in bestie
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. πŸ‘€

🌈 SEE ALSO 🌈


and that's the page!! πŸ’– brought to you by GitHub CLI v2.102.0, dated Oct 2026 β€” mwah, go forth and view those autolinks, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from