gh release download v1.1.0 --pattern '*.tar.gz' --dir /tmp/releases

Category: GitHub CLI

gh release download v1.1.0 --pattern '*.tar.gz' --dir /tmp/releases

Download release assets matching a glob

Downloads matching assets from release v1.1.0 into /tmp/releases. --pattern filters files by glob, handy when a release carries several formats. Without --dir, files land in the current directory. Add --clobber to overwrite existing files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.