- Install
brew
if you haven’t already - $
brew install gh
- $
gh auth login
Reference and more information https://flaviocopes.com/setup-github-credentials-macos/
And here are the instructions for Linux https://github.com/cli/cli/blob/trunk/docs/install_linux.md