OS Manuals

gh-issue-artifact-download(1)

gh-issue-artifact-download - Download issue artifacts (preview)

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

gh-issue-artifact-download - Download issue artifacts (preview)

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

Download issue artifacts to files. Without artifact numbers, every artifact on the issue is downloaded. Artifacts can also be named by their URLs, which must all be on one issue. <issue> is an issue number or URL.

Each file is named <number>-<name>. Markdown documents end in .md, HTML documents in .html, and links are saved as .url Internet Shortcut files. If a file already exists, that artifact fails unless you use --clobber to overwrite it or --skip-existing to skip it.

Use --dir to choose the directory to download files into, --output to choose the path for a single artifact, or --output - to print its content. Use --version with a single artifact to download an earlier version from its edit history.

Overwrite existing files of the same name

The directory to download files into

The file to write a single artifact to (use "-" to write to standard output)

Skip downloading when files of the same name exist

Download the version with this number from the edit history

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

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.

# Download every artifact on issue 142
$ gh issue artifact download 142
# Download two artifacts into a folder
$ gh issue artifact download 142 2 5 --dir notes
# Print one artifact's content
$ gh issue artifact download 142 2 --output -
# Download an earlier version of one artifact
$ gh issue artifact download 142 2 --version 5

gh-issue-artifact(1)

Oct 2026

gh 2.103.2-r0 · os · ingested 2026-10-25