GitHub CLI ⟿ Command Line Power
· 1 min read
GitHub CLI (gh
) brings the power of GitHub to your terminal! Manage repositories, create issues, handle pull requests, and more - all without leaving your command line interface.
First, install GitHub CLI:
# macOS
brew install gh
# Windows
winget install GitHub.cli
# Linux (Ubuntu/Debian)
sudo apt install gh
Authenticate with your GitHub account:
gh auth login
Here are some powerful commands to get you started:
# Create a new repository
gh repo create my-project
# Clone a repository
gh repo clone owner/repo
# Create an issue
gh issue create --title "Bug: Login Issue" --body "Description here"
# Create a pull request
gh pr create --title "Feature: Add OAuth" --body "Implements OAuth login"
# View repository status
gh status
# List pull requests
gh pr list
# Check repository views
gh repo view --web
GitHub CLI makes your development workflow smoother by bringing GitHub's functionality right to your terminal. No more context switching between browser and terminal!
Visit: https://cli.github.com/ for more information and detailed documentation.