GitHub CLI

GitHub's official command-line tool, gh, for working with pull requests, issues and releases from the terminal.

In more detail

gh pr create --title "Add a new button" --body "Closes #42" opens a pull request for the current branch without visiting the website. It talks to GitHub, not to Git, so it complements the git command rather than replacing it.

Example

gh pr create --title "Add a new button" --body "Closes #42"

Related terms

Taught in

References