cli-gh (GitHub CLI - ghc) is a command-line interface tool designed to interact with GitHub directly from your terminal. Currently at version 0.0.9, it is in active early development, implying that its API and features are subject to frequent changes and potential instability. The tool aims to provide a simple, intuitive, and cross-platform way to manage GitHub resources such as repositories, issues, pull requests, branches, collaborators, and user profiles. It uses GitHub Personal Access Tokens (PATs) for secure authentication. While it offers a comprehensive set of commands for common GitHub operations, its differentiator lies in its focused approach to provide core GitHub functionalities through a streamlined terminal experience, in contrast to the broader, more integrated offerings of the official GitHub CLI. There is no specified release cadence at this early stage.
npm install cli-ghVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation, secure authentication with a GitHub PAT, listing existing repositories, and creating a new public repository from the command line.
Refer to the latest documentation and changelogs before updating. Pin to exact patch versions if stability is critical.
Always use environment variables, secure credential managers, or the interactive `cli-gh auth login` flow. Ensure PATs have the minimum required scopes and are rotated regularly.
Consider using `npx` for one-off commands or local installations within a project if global installation causes conflicts. Ensure your PATH variable is correctly configured.
Understand the scope and differences between `cli-gh` and the official `gh` CLI. If integrating with a larger GitHub ecosystem or needing broader features, evaluate `gh` (https://cli.github.com).
Run `npm install -g cli-gh` to install it globally. Verify your PATH environment variable includes the directory where npm installs global packages (e.g., `npm root -g`).
Generate a new PAT on GitHub with appropriate scopes (e.g., `repo`, `read:org`, `workflow` for full functionality) and re-run `cli-gh auth login` to update your credentials.
Review the GitHub API documentation for the specific command you are trying to execute and ensure your PAT includes all required scopes. Generate a new PAT with broader permissions if necessary.
No dependency data recorded yet.