logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gh-release-download - Download release assets

Description

       Download assets from a GitHub release.

       Without  an  explicit tag name argument, assets are downloaded from the latest release in the project. In
       this case, --pattern or --archive is required.

Example

       # download all assets from a specific release
       $ gh release download v1.2.3

       # download only Debian packages for the latest release
       $ gh release download --pattern '*.deb'

       # specify multiple file patterns
       $ gh release download -p '*.deb' -p '*.rpm'

       # download the archive of the source code for a release
       $ gh release download v1.2.3 --archive=zip

Name

       gh-release-download - Download release assets

Options

-A, --archive<format>
              Download the source code archive in the specified format (zip or tar.gz)

       --clobber
              Overwrite existing files of the same name

       -D, --dir<directory>(default".")
              The directory to download files into

       -O, --output<file>
              The file to write a single asset to (use "-" to write to standard output)

       -p, --pattern<stringArray>
              Download only assets that match a glob pattern

       --skip-existing
              Skip downloading when files of the same name exist

Options Inherited From Parent Commands

-R, --repo<[HOST/]OWNER/REPO>
              Select another repository using the [HOST/]OWNER/REPO format

See Also

gh-release(1)

                                                    Jan 2025                              GH-RELEASE-DOWNLOAD(1)

Synopsis

ghreleasedownload[<tag>][flags]

See Also