gh run download
gh run download [<run-id>] [flags]
Download artifacts generated by a GitHub Actions workflow run.
The contents of each artifact will be extracted under separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.
By default, this command downloads the latest artifact created and uploaded through
GitHub Actions. Because workflows can delete or overwrite artifacts, <run-id>
must be used to select an artifact from a specific workflow run.
Options
-D
,--dir <string> (default ".")
- The directory to 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 another repository using the [HOST/]OWNER/REPO format