gh Command Examples

Work seamlessly with GitHub. Some subcommands such as gh config have their own usage documentation. More information: https://cli.github.com/.

gh repo clone {{owner}}/{{repository}}

gh issue create

gh issue list

gh issue view --web {{issue_number}}

gh pr create

gh pr view --web {{pr_number}}

gh pr checkout {{pr_number}}

gh pr status