批量下载GitHub release
工具gh
gh release download v2.12.0 --repo ginuerzh/gost
需要手动登录github的token

然后在命令中使用令牌登录
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
本文来自博客园,作者:catlas,转载请注明原文链接:https://www.cnblogs.com/catlas4blog/p/19916203

浙公网安备 33010602011771号