List of Github cli commands

List of Github cli commands

Github cli commands

A list of Github cli commands

feel free to star this

Alt Github cli


Initialize a Github repository [default private]gh repo create <name>
Initialize a Github public repositorygh repo create <name> --public
Create a local copy of a remote repositorygh repo clone <repository-name> or
gh repo clone<username>/<repository-name>
Create a fork for the current repositorygh repo fork

Pull requests

Check statusgh pr status
Create a pull requestgh pr create
Quickly navigate to the pull request creation pagegh pr create --web
list of open pull requestsgh pr list
View a pull requestgh pr view


Create a new issuegh issue create
Create an issue using flagsgh issue create --title "Issue title"
list of open issuesgh issue list
list of closed issuesgh issue list --state closed
Show status of relevant issuesgh issue status
View an issuegh issue view {<number> / <url>}