GH-ISSUE-ARTIFACT-VIEW(1)
π 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; seegh help formatting(iykyk)--version <number>(default0) β 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/REPOformat. 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 π
gh-issue-artifact(1)β go say hi to the whole artifact family π§
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
- nixos 26.05: gh 2.103.3
- nixpkgs unstable: gh 2.103.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms