Return to GitHub CLI Installation, GitHub, List of CLIs, Command-Line Interfaces, Git, GitHub, GitHub Actions, GitHub Codespaces Cloud IDE
gh is GitHub on the command line. It brings GitHub pull requests, GitHub issues, and other GitHub concepts to the GitHub terminal next to where you are already working with git and your code.
Usage:
gh
Work seamlessly with GitHub from the command line.
USAGE
gh[flags]
CORE COMMANDS
browse: Open the repository in the browser gist: Manage gists issue: Manage issues pr: Manage pull requests release: Manage GitHub releases repo: Create, clone, fork, and view repositories
ACTIONS COMMANDS
actions: Learn about working with GitHub actions run: View details about workflow runs workflow: View details about GitHub Actions workflows
ADDITIONAL COMMANDS
alias: Create command shortcuts api: Make an authenticated GitHub API request auth: Login, logout, and refresh your authentication completion: Generate shell completion scripts config: Manage configuration for gh extension: Manage gh extensions help: Help about any command secret: Manage GitHub secrets ssh-key: Manage SSH keys
FLAGS
--help Show help for command --version Show gh version
EXAMPLES
$ gh issue create $ gh repo clone cli/cli $ gh pr checkout 321
ENVIRONMENT VARIABLES
See 'gh help environment' for the list of supported environment variables.
LEARN MORE
Use 'gh--help' for more information about a command. Read the manual at https://cli.github.com/manual
FEEDBACK
Open an issue using 'gh issue create -R github.com/cli/cli' ----
GitHub CLI gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.
Installation You can find installation instructions on our README.
Authentication Run gh auth login to authenticate with your GitHub account. gh will respect tokens set using GITHUB_TOKEN.
GitHub Enterprise Server GitHub CLI supports GHES 2.20 and above. To authenticate with a GitHub Enterprise instance, run:
gh auth login –hostname <hostname> You will be prompted to either authenticate using your browser, or to paste a token.
Setting an editor To set your preferred editor, you can use gh config set editor <editor>. Read more about gh config.
Additionally if the above is not set, for macOS and Linux, gh will respect editor environment variables based on your OS and shell setup.
On macOS and Linux, the default editor is Nano. On Windows, the default editor is Notepad.
Setting your git protocol To set your preferred git protocol, you can use gh config set git_protocol { ssh ]] | //cli.github.com/manual/ ---- GitHub CLI gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code. screenshot of gh pr status GitHub CLI is available for repositories hosted on GitHub.com and GitHub Enterprise Server 2.20+, and to install on macOS, Windows, and Linux. Documentation See the manual for setup and usage instructions. Contributing If anything feels off, or if you feel that some functionality is missing, please check out the contributing page. There you will find instructions for sharing your feedback, building the tool locally, and submitting pull requests to the project. ==Installation== * macOS gh is available via [[Homebrew, MacPorts, Conda, and as a downloadable binary from the releases page.
Install: Upgrade:
sudo port install gh (see port install
sudo port selfupdate && sudo port upgrade gh
Install: Upgrade:
conda install gh –channel conda-forge
conda update gh –channel conda-forge
Additional Conda installation options available on the gh-feedstock page.
gh is available via Homebrew, Conda, and as downloadable binaries from the releases page.
For instructions on specific distributions and package managers, see Linux & BSD installation.
gh is available via WinGet, scoop, Chocolatey, Conda, and as downloadable MSI.
MSI installers are available for download on the releases page.
GitHub CLI comes pre-installed in all GitHub-Hosted Runners (https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners) for use with GitHub Actions.
Download packaged binaries from the releases page: https://github.com/cli/cli/releases/tag/v2.0.0
For many years, hub was the unofficial GitHub CLI tool. gh is a new project that helps us explore what an official GitHub CLI tool can look like with a fundamentally different design. While both tools bring GitHub to the terminal, hub behaves as a proxy to git, and gh is a standalone tool. Check out our more detailed explanation to learn more.
https://github.com/cli/cli#installation
gh
Work seamlessly with GitHub from the command line.
USAGE gh <command> <subcommand> [flags]
CORE COMMANDS
ACTIONS COMMANDS
ADDITIONAL COMMANDS
FLAGS
EXAMPLES
$ [[gh issue create]] $ [[gh repo clone]] cli/cli $ [[gh pr checkout]] 321
ENVIRONMENT VARIABLES
See '[[gh help environment]]' for the list of supported [[gh environment variables]].
LEARN MORE
Use 'gh--help' for more information about a command. Read the manual at https://cli.github.com/manual
FEEDBACK
Open an issue using 'gh issue create -R github.com/cli/cli'
PS C:\Users\USER> gh actions
Welcome to GitHub Actions on the command line.
GitHub CLI integrates with Actions to help you manage runs and workflows.
Interacting with workflow runs
To see more help, run 'gh help run <subcommand>'
Interacting with GitHub workflow files
To see more help, run 'gh help workflow <subcommand>'
For more in depth help including examples, see online documentation at:
https://docs.github.com/en/actions/guides/managing-github-actions-with-github-cli
PS C:\Users\USER> gh workflow list
Welcome to GitHub CLI!
To authenticate, please run `gh auth login`.
PS C:\Users\USER> gh auth login
GitHub related ONLY: Give me a 500 term vocabulary list sorted by popularity in usage (by commonly used / frequency of use in codebases). That means 500 terms, not 500 words. DO NOT REPEAT YOURSELF. Acronyms related to GitHub technology are allowed but they must be expanded. e.g. RAII (Resource Acquisition Is Initialization). The terms should have to do ONLY with and SPECIFICALLY with GitHub, CANNOT include generic operating system terms, generic IT terms, or computing terms. No definitions. Just the words. Each word should be surrounded by double brackets and separated by a comma and on the same lines. e.g. robots, robotics. Etc.
GitHub, repository, fork, pull request, merge request, branch, main branch, default branch, commit, merge, conflict resolution, issue, issue tracker, milestone, labels, assignees, contributors, collaborators, workflow, actions, GitHub Actions, runner, workflow file, YAML, CI/CD (Continuous Integration/Continuous Deployment), repository secrets, environment variables, webhook, API (Application Programming Interface), REST API, GraphQL API, OAuth authentication, personal access token, SSH key, GPG key, GitHub Pages, static site generator, Markdown, README.md, CONTRIBUTING.md, LICENSE, codeowners, GitHub Classroom, GitHub Sponsors, GitHub Enterprise, GitHub Enterprise Server, GitHub Enterprise Cloud, GitHub Actions Marketplace, GitHub Marketplace, dependabot, code scanning, vulnerability alerts, dependency graph, GitHub Packages, GitHub Container Registry, Dockerfile, Docker image, actions/cache, actions/upload-artifact, actions/download-artifact, actions/checkout, GitHub Runner, self-hosted runner, GitHub CLI (Command Line Interface), gh CLI, gh workflow, gh repo, gh issue, gh pr, gh release, GitHub Insights, GitHub Metrics, commit graph, contribution heatmap, activity log, GitHub Wiki, GitHub Discussions, GitHub Codespaces, VSCode integration, dev container, GitHub Copilot, Copilot Labs, Copilot CLI, AI pair programming, GitHub Education, GitHub Campus Experts, GitHub Student Developer Pack, GitHub Security Lab, Secret Scanning, GitHub Dependabot Alerts, SAML single sign-on, SSO (Single Sign-On), GitHub Audit Logs, repo sync, GitHub Importer, migrate repositories, collaboration tools, project board, Kanban board, GitHub Projects, GitHub Team Discussions, GitHub Organization, organization-level permissions, team management, team discussions, team sync, GitHub Archive, GitHub Archive Program, Arctic Code Vault, repo insights, GitHub RESTful API, GitHub GraphQL API Explorer, GitHub Webhooks, GitHub Actions Runner, GitHub Secrets, GitHub Artifact Storage, GitHub Custom Actions, custom GitHub Actions, GitHub-hosted runners, Linux runner, Windows runner, macOS runner, GitHub Actions Cache, GitHub Artifact Cache, action.yml, GitHub Action Metadata, GitHub Flavored Markdown, GFM (GitHub Flavored Markdown), emoji in Markdown, Markdown linting, pre-commit hook, commit message guidelines, squash merge, rebase and merge, merge commit, protection rules, branch protection, branch restrictions, branch policies, code review, pull request reviews, PR approvals, required reviewers, draft pull request, pull request template, issue template, GitHub Insights Dashboard, team analytics, repository analytics, GitHub Action Logs, Actions tab, Jobs tab, GitHub Actions API, workflow logs, workflow run, actions workflow, GitHub Organization-level Actions, custom action development, Docker action, JavaScript action, GitHub Workflow Commands, GitHub Logs, repo settings, repo secrets, environment secrets, GitHub Profile README, personal README, pinned repositories, GitHub Sponsor button, community profile, community standards, project automation, project automation rules, automation tasks, dependabot config, security advisories, GitHub CVE Alerts, CVE identifiers, dependency vulnerabilities, code scanning alerts, SARIF (Static Analysis Results Interchange Format), custom query packs, GitHub CodeQL, CodeQL Analysis, GitHub DevOps, GitHub CI integration, CI badges, workflow badges, GitHub Pages Custom Domain, CNAME setup, HTTPS enforcement, DNS configuration, GitHub Actions Manual Trigger, workflow_dispatch, schedule trigger, cron job in Actions, GitHub Deployment, GitHub Deployments API, GitHub Releases, release drafts, release assets, pre-release, GitHub Actions Runner Groups, runner group settings, GitHub Advanced Security, security policies, security workflows, GitHub Organization Webhooks, webhook events, repository dispatch, GitHub Events API, starred repositories, GitHub Stars, starring a repo, watching a repository, fork syncing, fork update, branch comparison, compare view, diff view, unified diff, split diff, pull request checks, required status checks, continuous testing, GitHub Test Matrix, matrix builds, matrix workflows, GitHub Run ID, job outputs, GitHub Actions Artifact Upload, artifacts download, GitHub Hosted Runners, runner versions, GitHub Dependabot PR, automated dependency updates, GitHub Auto-merge, pull request automation, review request automation, GitHub Notification Settings, repo notifications, team notifications, organization notifications, GitHub Blame View, line history, file history, commit history, repo tags, GitHub Milestones, milestone tracking, GitHub Discussions Tab, threaded discussions, locked conversations, resolved conversations, GitHub Contribution Graph, activity overview, commit frequency, contribution insights, GitHub Copilot Chat, Copilot suggestions, PR linting, GitHub Action Timeout, job timeout, action retries, GitHub Pages Workflow, pages build, GitHub Actions Deployment.
GitHub: GitOps, GitHub Copilot (Learn AI-Assisted Python Programming), GitHub for Major Software and Languages, GitHub Fundamentals, GitHub Inventor: GitHub and Git, GitHub Stars: GitHub Organization Ranking, GitHub Stars Ranking, GitHub Star Ranking for Repositories, GitHub Big Tech, Cloud Monk's favorite GitHub repos, gh plugin, git help, Version control, GitHub topics, Git topics, Git, GitHub repos, GitHub bibliography, Manning Git-GitHub Series, GitHub Actions, GitHub CodeSpaces, GitHub CLI, GitHub Free, GitHub Pro, GitHub Team, GitHub Enterprise, GitHub security (GitHub MFA –> GitHub Two-Factor Methods - GitHub Passkeys) - GitHub Secrets - Authenticating with GitHub from Git (gh auth login), GLFS, GitHub Packages, GitHub alternative source code repos (GitHub - GitLab - AWS CodeCommit - Google Cloud Source Repositories - Bitbucket), Install Git, Git for Windows (choco search github, brew search github), Git for Linux, Git for macOS, GitHub Glossary - Glossaire de GitHub - French, Git Glossary - Glossaire de Git - French. (navbar_github - see also navbar_git, navbar_gitops, navbar_gitlab, navbar_azure_devops, navbar_iac)
Cloud Monk is Retired ( for now). Buddha with you. © 2025 and Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.