GitHub CLI Setup
Configure gh CLI for GitHub access.
Quick Setup
bash
gh auth login
Select: GitHub.com → HTTPS → Login with browser
Verify Authentication
bash
gh auth status gh api user --jq '.login'
Troubleshooting
If gh commands fail:
- •Check authentication -
gh auth status - •Re-login if needed -
gh auth login - •Check scopes - Ensure token has repo access
- •Update gh -
brew upgrade ghor equivalent