Gh
(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
Install / Use
/learn @node-gh/GhREADME
DEPRECATED
<h1 align="center">Node GH</h1> <p align="center"> <a href="#contributors" alt="All Contributors Badge"> <img src="https://img.shields.io/badge/all_contributors-88-orange.svg?style=flat-square" /> </a> <a href="http://npmjs.org/gh" alt="NPM version Badge"> <img src="http://img.shields.io/npm/v/gh.svg?style=flat" /> </a> <a href="https://travis-ci.org/node-gh/gh" alt="Build Status Badge"> <img src="http://img.shields.io/travis/node-gh/gh/master.svg?style=flat" /> </a> <a href="https://snyk.io/test/github/node-gh/gh" alt="Known Vulnerabilities Badge"> <img src="https://snyk.io/test/github/node-gh/gh/badge.svg" /> </a> <a href="https://github.com/semantic-release/semantic-release" alt="Semantic Release Badge"> <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" /> </a> <a href="https://lgtm.com/projects/g/node-gh/gh/context:javascript" alt="LGTM Grade Badge"> <img src="https://img.shields.io/lgtm/grade/javascript/g/node-gh/gh.svg?logo=lgtm&logoWidth=18" /> </a> <a href="https://lgtm.com/projects/g/node-gh/gh/alerts" alt="LGTM Total Alerts Badge"> <img src="https://img.shields.io/lgtm/alerts/g/node-gh/gh.svg?logo=lgtm&logoWidth=18" /> </a> </p>
Boost your productivity & automate tasks when working with GitHub, all from the comfort of your CLI.
Table of contents
<details><summary>Getting Started</summary>- Install
- Usage
- Config
- Plugins
- Contributing </details>
--info- Get information about a pull request--list- List pull requests--fetch- Rebase or Merge pull request into new branch--comment- Comment on a pull request--fwd- Forward a pull request to another reviewer--open|--close- Open or Close a pull request--submit- Open or Close a pull request--browser- Open GitHub pull request page in the browser </details>
--new- Create new issues--comment- Comment on an issue of a repository--list- List issues on a repository--open|--close- Open or Close an issue--browser- Open GitHub issue page in the browser--lock- Lock GitHub issue--search- Search issues in current repository--assign- Assign an issue on a repository to a user </details>
--browser- Open the GitHub repository page in the browser--list- List repos--create- Create a new GitHub repository and clone on the current directory--fork- Fork a GitHub repository--delete- Delete a repository of specified user--clone- Clone a repository--label --new- Create or delete a label for a repository--label --delete- Delete a label for a repository--label --list- List labels for a repository--label --update- Update a label for a repository--search- Find repositories via various criteria </details>
--browser- Open a Gist in the browser--list- List user's gists--create- Create new gists--fork- Fork a gist--delete- Delete a gist </details>
--login- Automates saving user name & developer token credentials to your ~/.gh.json config--logout- Automates removing user name & developer token credentials from your ~/.gh.json config--whoami- Prints the user name from ~/.gh.json to your console </details>
--latest- Display the latest activities on a repository--list- Watch for any activity on repository </details>
--list- List milestones for a specific repo </details>
--add- Add a shell-like alias for users--remove- Remove alias--list- List aliases for a specific repo </details>
- History
- License
- Demonstration
- Supported Node Versions </details>
Install
npm install -g gh
Usage
- Most commands require you to use a developer key
- We automate the process for you the first time you run a command
- Instructions on manually adding a developer key for extra security
Simple example: list prs for current repo
gh pr
Contributors
Huge thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="center"><a href="https://github.com/eduardolundgren"><img src="https://avatars0.githubusercontent.com/u/113087?v=4" width="50px;" alt=""/><br /><sub><b>Eduardo Lundgren</b></sub></a><br /><a href="https://github.com/node-gh/gh/commits?author=eduardolundgren" title="Code">💻</a> <a href="https://github.com/node-gh/gh/issues?q=author%3Aeduardolundgren" title="Bug reports">🐛</a> <a href="https://github.com/node-gh/gh/commits?author=eduardolundgren" title="Documentation">📖</a> <a href="#question-eduardolundgren" title="Answering Questions">💬</a> <a href="#infra-eduardolundgren" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#plugin-eduardolundgren" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/node-gh/gh/commits?author=eduardolundgren" title="Tests">⚠️</a> <a href="https://github.com/node-gh/gh/pulls?q=is%3Apr+reviewed-by%3Aeduardolundgren" title="Reviewed Pull Requests">👀</a> <a href="#ideas-eduardolundgren" title="Ideas, Planning, & Feedback">🤔</a></td> <td align="center"><a href="https://zenorocha.com"><img src="https://avatars1.githubusercontent.com/u/398893?v=4" width="50px;" alt=""/><br /><sub><b>Zeno Rocha</b></sub></a><br /><a href="https://github.com/node-gh/gh/commits?author=zenorocha" title="Code">💻</a> <a href="https://github.com/node-gh/gh/issues?q=author%3Azenorocha" title="Bug reports">🐛</a> <a href="https://github.com/node-gh/gh/commits?author=zenorocha" title="Documentation">📖</a> <a href="#question-zenorocha" title="Answering Questions">💬</a> <a href="#infra-zenorocha" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#plugin-zenorocha" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/node-gh/gh/commits?author=zenorocha" title="Tests">⚠️</a> <a href="https://github.com/node-gh/gh/pulls?q=is%3Apr+reviewed-by%3Azenorocha" title="Reviewed Pull Requests">👀</a> <a href="#ideas-zenorocha" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-zenorocha" title="Content">🖋</a></td> <td align="center"><a href="https://henvic.github.io/"><img src="https://avatars3.githubusercontent.com/u/936421?v=4" width="50px;" alt=""/><br /><sub><b>Henrique Vicente</b></sub></a><br /><a href="https://github.com/node-gh/gh/commits?author=henvic" title="Code">💻</a> <a href="https://github.com/node-gh/gh/issues?q=author%3Ahenvic" title="Bug reports">🐛</a> <a href="#question-henvic" title="Answering Questions">💬</a> <a href="#infra-henvic" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#plugin-henvic" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/node-gh/gh/commits?author=henvic" title="Tests">⚠️</a> <a href="https://github.com/node-gh/gh/pulls?q=is%3Apr+reviewed-by%3Ahenvic" title="Reviewed Pull Requests">👀</a> <a href="#security-henvic" title="Security">🛡️</a> <a href="#ideas-henvic" title="Ideas, Planning, & Feedback">🤔</a></td> <td align="center"><a href="https://github.com/protoEvangelion"><img src="https://avatars3.githubusercontent.com/u/20076677?v=4" width="50px;" alt=""/><br /><sub><b>Ryan Garant</b></sub></a><br /><a href="https://github.com/node-gh/gh/issues?q=author%3AprotoEvangelion" title="Bug reports">🐛</a> <a href="#question-protoEvangelion" title="Answering Questions">💬</a> <a href="#infra-protoEvangelion" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#plugin-protoEvangelion" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/node-gh/gh/commits?author=protoEvangelion" title="Tests">⚠️</a> <a href="https://github.com/node-gh/gh/pulls?q=is%3Apr+reviewed-by%3AprotoEvangelion" title="Reviewed Pull Requests">👀</a> <a href="#security-protoEvangelion" title="Security">🛡️</a> <a href="#ideas-protoEvangelion" title="Ideas, Planning, & Feedback">🤔</a></td> <td align="center"><a href="https://github.com/brunocoelho"><img src="https://avatars1.githubusercontent.com/u/827445?v=4" width="50px;" alt=""/><br /><sub><b>Bruno Coelho</b></sub></a><br /><a href="https://github.com/node-gh/gh/commits?author=brunocoelho" title="Code">💻</a> <a href="https://gRelated Skills
apple-reminders
341.2kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
341.2kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
341.2kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
