← 全部工具

cli/cli

热度 75 更新于 开发与构建

GitHub’s official command line tool

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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.

GitHub CLI is supported for users on GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+ with support for macOS, Windows, and Linux.

Documentation

For installation options see below, for usage instructions see the manual.

Agent skills

An agent skill is available for driving gh from coding agents. Install or update it with the built-in gh skill command:

# Install the skill (user scope recommended)
gh skill install cli/cli gh --scope user

# Update the skill after a `gh` release
gh skill update gh

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.

If you are a hubber and are interested in shipping new commands for the CLI, check out our doc on internal contributions

Installation

macOS

  • Homebrew
  • Precompiled binaries on [releases page][]

For additional macOS packages and installers, see community-supported docs

Linux & Unix

  • Debian, Raspberry Pi, Ubuntu
  • Amazon Linux, CentOS, Fedora, openSUSE, RHEL, SUSE
  • Precompiled binaries on [releases page][]

For additional Linux & Unix packages and installers, see community-supported docs