Reputation: 11
I want to download all releases of a specific repository on GitHub, including the source code, at once.
I tried using the 'gh release download' command in GitHub CLI for this, but it didn't allow me to download all releases at once. Instead, I could only download them one by one. I also tried searching for the information I needed, but I couldn't find the answer I was looking for.
Upvotes: 1
Views: 55
Reputation: 85
you can loop through releases:
for tag in $(gh release list -R owner/repo --json tagName -q '.[].tagName'); do gh release download $tag -R owner/repo done
This script fetches all releases and downloads their assets.
Upvotes: 0