GH-REPO-AUTOLINK-LIST(1)

okay bestie, so this is a page from the GitHub CLI manual (that's the gh manual, the v2.102.0 era, and yeah we'll get to the date, keep reading 🫢). This one's all about listing the autolink references on a repo. Sounds niche? It is. Is it still iconic? Literally yes. ✨


🌸 NAME 🌸

gh-repo-autolink-list β€” List autolink references for a GitHub repository. that's the whole job, and she does it well πŸ’–


✨ SYNOPSIS ✨

gh repo autolink list [flags]

short, sweet, slays πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Gets all autolink references that are configured for a repository. like, every single one, no crumbs left behind πŸ“

okay so important vibe check: information about autolinks is only available to repository administrators. so if you're not an admin and you get told no, that's not a bug, that's the door being locked πŸ”’πŸ˜­

πŸ’… OPTIONS πŸ’…

  • -q, --jq <expression> β€” Filter JSON output using a jq expression. yes queen, pipe it through your jq brain and get exactly the fields you want πŸ”₯
  • --json <fields> β€” Output JSON with the specified fields. structured data bestie, no notes 🫢
  • -t, --template <string> β€” Format JSON output using a Go template; see "gh help formatting". for when you want it pretty pretty πŸŽ€
  • -w, --web β€” List autolink references in the web browser. main character behavior: just open the browser instead of reading terminal output 🌈

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

  • -R, --repo <[HOST/]OWNER/REPO> β€” Select another repository using the [HOST/]OWNER/REPO format. switching repos like switching outfits, we love a versatile icon πŸ’œ

⭐ ALIASES ⭐

gh repo autolink ls

yep, ls works too. same energy, less typing. iykyk πŸ’…


🧚 JSON FIELDS 🧚

the fields you can ask for are:

id, isAlphanumeric, keyPrefix, urlTemplate

that's the whole menu, no cap πŸ“


🌸 EXIT CODES 🌸

  • 0 β€” Successful execution πŸŽ‰ slay, it worked
  • 1 β€” Error 😭 something went sideways
  • 2 β€” Command canceled πŸ™ˆ you (or something) pulled the plug
  • 4 β€” Authentication required πŸ” girl, log in first
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so always double-check the specific command's help if you're seeing numbers we didn't list here, bestie 🫢

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page!! brought to you by GitHub CLI v2.102.0, dated Oct 2026 β€” mwah, drink water, and remember: only admins get to peek at autolinks πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from