GH-ISSUE-ARTIFACT-DOWNLOAD(1)
๐ 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
.urlInternet 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:
--dirpicks the directory to download files into ๐--outputpicks 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>(default0) โ Download the version with this number from the edit history. Default0means 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/REPOformat. 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 ๐ฆ
gh-issue-artifact(1)โ the parent, the icon, the legend ๐
โฟ 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
- 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