1GH-RELEASE-DOWNLOAD(1)         GitHub CLI manual        GH-RELEASE-DOWNLOAD(1)
2
3
4

NAME

6       gh-release-download - Download release assets
7
8
9

SYNOPSIS

11       gh release download [<tag>] [flags]
12
13
14

DESCRIPTION

16       Download assets from a GitHub release.
17
18
19       Without  an  explicit tag name argument, assets are downloaded from the
20       latest release in the project. In this case, '--pattern' is required.
21
22
23

OPTIONS

25       -A, --archive <format>
26              Download the source code archive in the specified format (zip or
27              tar.gz)
28
29
30       -D, --dir <string>
31              The directory to download files into
32
33
34       -p, --pattern <stringArray>
35              Download only assets that match a glob pattern
36
37
38

OPTIONS INHERITED FROM PARENT COMMANDS

40       -R, --repo <[HOST/]OWNER/REPO>
41              Select another repository using the [HOST/]OWNER/REPO format
42
43
44

EXAMPLE

46              # download all assets from a specific release
47              $ gh release download v1.2.3
48
49              # download only Debian packages for the latest release
50              $ gh release download --pattern '*.deb'
51
52              # specify multiple file patterns
53              $ gh release download -p '*.deb' -p '*.rpm'
54
55              # download the archive of the source code for a release
56              $ gh release download v1.2.3 --archive=zip
57
58
59
60
61

SEE ALSO

63       gh-release(1)
64
65
66
67                                   Jun 2022             GH-RELEASE-DOWNLOAD(1)
Impressum