Use a github token to get a higher api rate limit - lord63/choosealicense-cli GitHub Wiki
When you hit github api rate limit, you can wait for a while or use a github token to get higher limit.
To add a github token for choosealicense-cli, you can:
- Generate a token: go to https://github.com/settings/tokens page, genereate a new token(please don't check any checkboxes in that page, a minimal permission token is enough for choosealicense-cli!)
- Export token in environ: add
export CHOOSEALICENSE_GITHUB_TOKEN=xxxx
in your .bashrc or .zshrc, so you can use it everywhere in your terminal