-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
enhancementa request to improve CLIa request to improve CLI
Description
Describe the feature or problem you’d like to solve
I would like the ability to list releases/assets from a repository. This would be a quality of life improvement over checking for latest releases via the browser and simplify scripting an environment.
Proposed solution
List releases in a repository
$ gh repo releases cli/cli
0.4
0.2
0.1
...
List assets in a release by version or latest
$ gh repo releases cli/cli latest
gh_0.10.1_checksums.txt 1.09 KB
gh_0.10.1_linux_386.deb 5.41 MB
gh_0.10.1_linux_386.rpm 5.4 MB
$ gh repo releases cli/cli 0.2
gh_0.2_checksums.txt 1.09 KB
gh_0.2_checksums.txt 1.09 KB
...
Assets can be listed with their full URL with a flag e.g. --url/-u.
This will allow users to click the URLs to open in their browser (if their terminal supports links) or use wget/curl in a script.
$ gh repo releases cli/cli latest --url
https://github.com/cli/cli/releases/download/v0.10.1/gh_0.10.1_linux_386.deb
https://github.com/cli/cli/releases/download/v0.10.1/gh_0.10.1_linux_amd64.deb
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLI
Type
Fields
Give feedbackNo fields configured for issues without a type.