1GH-RELEASE-DOWNLOAD(1) GitHub CLI manual GH-RELEASE-DOWNLOAD(1)
2
3
4
6 gh-release-download - Download release assets
7
8
9
11 gh release download [<tag>] [flags]
12
13
14
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
25 -A, --archive <format>
26 Download the source code archive in the specified format (zip or
27 tar.gz)
28
29
30 --clobber
31 Overwrite existing files of the same name
32
33
34 -D, --dir <directory>
35 The directory to download files into
36
37
38 -O, --output <file>
39 The file to write a single asset to (use "-" to write to stan‐
40 dard output)
41
42
43 -p, --pattern <stringArray>
44 Download only assets that match a glob pattern
45
46
47 --skip-existing
48 Skip downloading when files of the same name exist
49
50
51
53 -R, --repo <[HOST/]OWNER/REPO>
54 Select another repository using the [HOST/]OWNER/REPO format
55
56
57
59 # download all assets from a specific release
60 $ gh release download v1.2.3
61
62 # download only Debian packages for the latest release
63 $ gh release download --pattern '*.deb'
64
65 # specify multiple file patterns
66 $ gh release download -p '*.deb' -p '*.rpm'
67
68 # download the archive of the source code for a release
69 $ gh release download v1.2.3 --archive=zip
70
71
72
73
74
76 gh-release(1)
77
78
79
80 Oct 2023 GH-RELEASE-DOWNLOAD(1)