GitHub CLI (gh)
Updated 2026-02-15
gh for repos, pull requests, issues, and workflows. Create PRs and manage GitHub from the terminal.
Repos and auth
gh auth loginLog in to GitHub.
gh repo clone owner/repoClone repo.
gh repo createCreate repo (interactive).
gh repo viewView repo in browser.
PRs and issues
gh pr createCreate PR from current branch.
gh pr listList PRs.
gh pr checkout 123Checkout PR branch.
gh issue listList issues.
gh issue createCreate issue.