GH-ISSUE-ARTIFACT-VIEW(1) GitHub CLI manual GH-ISSUE-ARTIFACT-VIEW(1)

# [NAME](#NAME)

gh-issue-artifact-view - View an issue artifact (preview)

# [SYNOPSIS](#SYNOPSIS)

**gh issue artifact view {&lt;issue&gt; &lt;artifact-number&gt; | &lt;artifact-url&gt;} \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Display an issue artifact's name, type, authors, content, and edit history. A link shows its URL.

Name the artifact by its issue and number, or by its URL. **&lt;issue&gt;** is an issue number or URL.

By default, the current version is shown. Use **--version** to show an earlier version from the edit history.

With **--web**, open a document's page on GitHub, or a link's URL.

# [OPTIONS](#OPTIONS)

[**-q**, **--jq** **&lt;expression&gt;**](#q)

Filter JSON output using a jq expression

[**--json** **&lt;fields&gt;**](#json)

Output JSON with the specified fields

[**-t**, **--template** **&lt;string&gt;**](#t)

Format JSON output using a Go template; see "gh help formatting"

[**--version** **&lt;number&gt; (default 0)**](#version)

Show the version with this number from the edit history

[**-w**, **--web**](#w)

Open a document's page on GitHub, or a link's URL

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [JSON FIELDS](#JSON_FIELDS)

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

# [EXIT CODES](#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](#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](#SEE_ALSO)

[**gh-issue-artifact(1)**](/man/os/gh/gh-issue-artifact.1)

Oct 2026

---

Document: gh-issue-artifact-view(1) from gh 2.103.3-r1 (Chainguard OS)
Source: https://github.com/cli/cli
