cli-gh: GitHub Command Line Interface

0.0.9 · active · verified Wed Apr 22

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.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates global installation, secure authentication with a GitHub PAT, listing existing repositories, and creating a new public repository from the command line.

npm install -g cli-gh

# Log in to GitHub using a Personal Access Token (PAT)
# Follow the interactive prompts to generate or input your PAT
cli-gh auth login

# List all repositories for the authenticated user
cli-gh repo list

# Create a new repository (example: 'my-new-repo')
cli-gh repo create my-new-repo --public --description "My awesome new project."

view raw JSON →