GitHub CLI (gh): manage GitHub from Cerewro chat

GitHub's official CLI (gh) lets you interact with GitHub directly from the command line: create and clone repos, manage issues and Pull Requests, view GitHub Actions status and much more, without opening a browser.

Install and authenticate gh

Install gh on Windows
winget install GitHub.cli
gh auth login

Essential gh commands

CategoryCommandAction
Reposgh repo create --publicCreate new repository
Reposgh repo clone user/repoClone repository
Reposgh repo listList your repos
Issuesgh issue listView open issues
Issuesgh issue createCreate new issue
PRsgh pr create --fillCreate PR from commit info
PRsgh pr merge 15 --squashMerge PR #15 with squash
Actionsgh run listView recent runs
Actionsgh run watchFollow active run
Automated feature branch → PR flow
git switch -c feature/new-feature
git add . && git commit -m "feat: new feature"
git push -u origin feature/new-feature
gh pr create --title "New feature" --body "Detailed description" --label "enhancement"
gh + Cerewro = AI-powered PR reviews: Ask Cerewro: "Show me the changes in PR #42 and tell me if there's anything to improve". The AI uses gh pr diff 42 to fetch the diff and analyzes it automatically.