GH-ISSUE-ARTIFACT-DOWNLOAD(1)

๐Ÿ“ฆ version 2.103.3, in nixos 26.05, nixpkgs unstable

๐Ÿ’… gh-issue-artifact-download(1) โ€” the GitHub CLI manual, bestie edition ๐ŸŽ€

Okay so real talk: this is the page for gh-issue-artifact-download, straight out of the GitHub CLI manual, and it's a preview feature (yes, that kind of preview, iykyk ๐Ÿ‘€). Grab a snack ๐Ÿ“, we're downloading issue artifacts together.


โœจ NAME โœจ

gh-issue-artifact-download โ€” download issue artifacts (preview) ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

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

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So the whole vibe here is: you take issue artifacts and you download them into actual files on your machine. Iconic. ๐Ÿ™Œ

No artifact numbers? Cool, no problem โ€” every artifact on that issue gets downloaded. Main character energy. ๐Ÿ‘‘

You can also point at artifacts by their URLs instead of numbers โ€” but heads up, all those URLs have to be on one single issue. No mixing and matching across issues, bestie, that's a whole different vibe check. And <issue> itself? That's either an issue number or an issue URL. Easy.

Now, the naming situation, because this matters:

  • Each file gets named <number>-<name>
  • Markdown docs end in .md
  • HTML docs end in .html
  • Links get saved as .url Internet Shortcut files ๐Ÿ”—

And here's the part where you have to pay attention, ngl: if a file already exists, that artifact fails ๐Ÿ˜ญ โ€” unless you come in with --clobber to overwrite it, or --skip-existing to just skip right past it. Choose your fighter. ๐Ÿ’€

Where do the files go? That's your call:

  • --dir picks the directory to download files into ๐Ÿ“
  • --output picks the path for a single artifact
  • --output - prints that artifact's content instead of writing a file ๐Ÿ–จ๏ธ

And the time-travel option: use --version with a single artifact to grab an earlier version from its edit history. Literally going back in time, we love to see it. โณ


โญ OPTIONS โญ

  • --clobber โ€” Overwrite existing files of the same name. Boom, gone, replaced. ๐Ÿ”ฅ
  • -D, --dir <directory> (default ".") โ€” The directory to download files into. Defaults to the current directory, because of course it does.
  • -O, --output <file> โ€” The file to write a single artifact to (use "-" to write to standard output). One artifact, one path, that's the rule. ๐Ÿ’…
  • --skip-existing โ€” Skip downloading when files of the same name exist. Not today, existing file. ๐Ÿ™ˆ
  • --version <number> (default 0) โ€” Download the version with this number from the edit history. Default 0 means the current one, so you only flex this when you're feeling nostalgic. ๐Ÿ•ฐ๏ธ

๐Ÿ”ฎ OPTIONS INHERITED FROM PARENT COMMANDS ๐Ÿ”ฎ

  • -R, --repo <[HOST/]OWNER/REPO> โ€” Select another repository using the [HOST/]OWNER/REPO format. Yes, with the brackets, they're literal-ish, copy them right. ๐Ÿซถ

๐Ÿšฆ 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. Don't come for me, come for the command's help. ๐Ÿ’€

๐ŸŒˆ EXAMPLE ๐ŸŒˆ

# 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

Four examples, four vibes. Ate. ๐Ÿ’…โœจ


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


โœฟ and that's the whole page, bestie โœฟ This was GitHub CLI 2.103.3, dated Oct 2026, and it's the GH-ISSUE-ARTIFACT-DOWNLOAD(1) page โ€” now go download some artifacts, you gorgeous nerd ๐Ÿ’œ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from