批量下载GitHub release

工具gh

gh release download v2.12.0 --repo ginuerzh/gost

需要手动登录github的token
attachment/Pasted image 20260423150357.png
然后在命令中使用令牌登录

w@xxxx ~/D/dra-0.10.1-x86_64-unknown-linux-gnu [SIGINT]> gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations on this host? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: *********************************************************************************************
- gh config set -h github.com git_protocol https
✓ Configured git protocol
! Authentication credentials saved in plain text
✓ Logged in as xxxx
posted @ 2026-04-23 15:46  catlas  阅读(43)  评论(0)    收藏  举报