gh release download v1.1.0 --archive tar.gz

Category: GitHub CLI

gh release download v1.1.0 --archive tar.gz

Download the source archive of a release

--archive tar.gz fetches the source code snapshot GitHub generates for the release, not an uploaded asset. Choose zip or tar.gz. This is the canonical way to get the exact code of a tagged version for auditing or vendoring.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.