gh run download 123 --pattern '*.tar.gz' --dir dist/

Category: GitHub CLI

gh run download 123 --pattern '*.tar.gz' --dir dist/

Download run artifacts matching a pattern

Downloads artifacts uploaded by the run's jobs into dist/, with --pattern filtering to files matching the glob. Artifacts are the files jobs upload for later use, such as build outputs. Without --pattern, every artifact of the run downloads.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.