GH-ISSUE-ARTIFACT-VIEW(1)

πŸ“¦ version 2.103.3, in nixos 26.05, nixpkgs unstable

πŸ’… gh-issue-artifact-view(1) β€” the GitHub CLI manual, bestie edition

okay so this is a page from the GitHub CLI manual, and honestly? it's giving "niche but iconic." we're looking at gh-issue-artifact-view, one of the gh girlies. let's get into it ✨


🌸 NAME 🌸

gh-issue-artifact-view β€” view an issue artifact (and yes, it's a preview feature, so act accordingly 🫢)


πŸŽ€ SYNOPSIS πŸŽ€

gh issue artifact view {<issue> <artifact-number> | <artifact-url>}
[flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it actually do? It displays an issue artifact's name, type, authors, content, and edit history. And a link? it shows its URL. periodt.

You name the artifact one of two ways, bestie β€” by its issue and number, or by its URL. and <issue> itself can be an issue number or a URL. flexible queen πŸ’…

By default you get the current version. want to time-travel? use --version to show an earlier version from the edit history. lowkey iconic.

With --web, it opens a document's page on GitHub, or a link's URL. very "open in new tab" of it 🌈


✨ OPTIONS ✨

  • -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 (iykyk)
  • --version <number> (default 0) β€” show the version with this number from the edit history πŸ•°οΈ
  • -w, --web β€” open a document's page on GitHub, or a link's URL 🌐

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

  • -R, --repo <[HOST/]OWNER/REPO> β€” select another repository using the [HOST/]OWNER/REPO format. the heirloom option, passed down from the parent commands πŸ’œ

⭐ JSON FIELDS ⭐

these are the fields you can ask for, fr fr:

body, bodyHtml, createdAt, creator, description, id, name, number, type, updatedAt, updatedByActor, url, versions


πŸ”₯ 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.

πŸ’– EXAMPLE πŸ’–

# View artifact 2 on issue 142
$ gh issue artifact view 142 2

# View an earlier version
$ gh issue artifact view 142 2 --version 5

# View an artifact by its URL
$ gh issue artifact view https://github.com/monalisa/monas-cafe/issues/142/artifacts/3

# Open a link artifact in the browser
$ gh issue artifact view 142 3 --web

# Print an artifact's body
$ gh issue artifact view 142 2 --json body --jq .body

🌈 SEE ALSO 🌈


and that's the page, bestie πŸ’… this was GitHub CLI 2.103.3, dated Oct 2026 β€” no cap, that's the version and the date, keep them safe in your notes πŸ“πŸ«Ά

πŸ“¦ where this page comes from