Sponsor:

Your company here, and a link to your site. Click to find out more.

gh-run-download - Man Page

Download artifacts generated by a workflow run

Synopsis

gh run download [<run-id>] [flags]

Description

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.

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

Example

# 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

See Also

gh-run(1)

Referenced By

gh-run(1).

Mar 2024 GitHub CLI manual