Complete GitHub CLI Setup on Mac (2026) - Auth, Repo, PR

Опубликовано: 21 Июнь 2026
на канале: Install That
14
0

GitHub CLI on Mac setup: install gh with Homebrew, authenticate safely, verify auth status, view a repo, clone it, list issues, and list pull requests.

This terminal-first GitHub CLI walkthrough shows the exact commands: brew install gh, gh --version, gh auth login, gh auth status, gh repo view, gh repo clone, gh issue list, gh pr list, gh auth setup-git, gh config set editor, and gh alias set.

Commands shown
brew install gh
gh --version
gh auth login --web --git-protocol https
gh auth status
gh repo view cli/cli --json nameWithOwner,defaultBranchRef
gh repo clone cli/cli gh-cli-demo -- --depth 1
gh issue list --repo cli/cli --limit 3
gh pr list --repo cli/cli --limit 3
gh auth setup-git
gh config set editor 'code --wait'
gh alias set prs 'pr list --limit 10'

Official references
https://github.com/cli/cli#installation
https://cli.github.com/manual/gh_auth...
https://cli.github.com/manual/gh_repo...
https://cli.github.com/manual/gh_pr_list

#githubcli #ghcli #macos #terminal #github #installthat