GH-RUN-DOWNLOAD(1)
π GH-RUN-DOWNLOAD π
okay so bestie, welcome to the gh-run-download page from the GitHub CLI manual β¨ this one's a whole vibe, let's get into it π«Ά
πΈ NAME πΈ
gh-run-download β download the artifacts your workflow run produced π
β¨ SYNOPSIS β¨
gh run download [<run-id>] [flags]
that's it, that's the whole incantation π
π¦ DESCRIPTION π¦
So like, this command downloads the artifacts that a GitHub Actions workflow run generated π grabbing your sweet sweet build outputs straight out of the run, fr fr.
The contents of each artifact get extracted under separate directories, and each directory is named after the artifact. Keyword: separate. But plot twist β if you only specify a single artifact, it gets extracted right into the current directory. The way that's such a main-character move π
By default (aka no flags in sight), this command downloads the latest artifact that was created and uploaded through GitHub Actions β. But real talk: because workflows can delete or overwrite artifacts, you gotta use <run-id> to pick an artifact from a specific workflow run. π
π OPTIONS π
-D,--dir <string>(default".") β the directory you wanna download artifacts into π-n,--name <stringArray>β download artifacts that match any of the given names β¨-p,--pattern <stringArray>β download artifacts that match a glob pattern π¦
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β select a different repository using the[HOST/]OWNER/REPOformat π
π EXIT CODES π
Vibe-check your exit status, bestie:
0: successful execution π slay1: 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 π§ (yes it's singular, don't @ me)
# Download all artifacts generated by a workflow run
$ gh run download <run-id>
# Download a specific artifact within a run
$ gh run download <run-id> -n <name>
# Download specific artifacts across all runs in a repository
$ gh run download -n <name1> -n <name2>
# Select artifacts to download interactively
$ gh run download
that last one? no args at all? interactive selection era π¦ literally iconic
π SEE ALSO π
gh-run(1)β go read that one next, iykyk π
k bye bestie, go download some artifacts π«Ά this was GitHub CLI v2.102.0, dated Oct 2026 β written with love, shipped with the manual, and no cap β¨π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms