[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-987":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},987,"cli","cli\u002Fcli","GitHub’s official command line tool","https:\u002F\u002Fcli.github.com",null,"Go",44789,8548,1038,964,0,16,77,450,55,45,"MIT License",false,"trunk",[5,25,26,27],"git","github-api-v4","golang","2026-06-12 02:00:21","# GitHub CLI\n\n`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.\n\n![screenshot of gh pr status](https:\u002F\u002Fuser-images.githubusercontent.com\u002F98482\u002F84171218-327e7a80-aa40-11ea-8cd1-5177fc2d0e72.png)\n\nGitHub CLI is supported for users on GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+ with support for macOS, Windows, and Linux.\n\n## Documentation\n\nFor [installation options see below](#installation), for usage instructions [see the manual](https:\u002F\u002Fcli.github.com\u002Fmanual\u002F).\n\n## Contributing\n\nIf anything feels off or if you feel that some functionality is missing, please check out the [contributing page](.github\u002FCONTRIBUTING.md). There you will find instructions for sharing your feedback, building the tool locally, and submitting pull requests to the project.\n\nIf you are a hubber and are interested in shipping new commands for the CLI, check out our [doc on internal contributions](docs\u002Fworking-with-us.md)\n\n\u003C!-- this anchor is linked to from elsewhere, so avoid renaming it -->\n## Installation\n\n### [macOS](docs\u002Finstall_macos.md)\n\n- [Homebrew](docs\u002Finstall_macos.md#homebrew)\n- [Precompiled binaries](docs\u002Finstall_macos.md#precompiled-binaries) on [releases page][]\n\nFor additional macOS packages and installers, see [community-supported docs](docs\u002Finstall_macos.md#community-unofficial)\n\n### [Linux & Unix](docs\u002Finstall_linux.md)\n\n- [Debian, Raspberry Pi, Ubuntu](docs\u002Finstall_linux.md#debian)\n- [Amazon Linux, CentOS, Fedora, openSUSE, RHEL, SUSE](docs\u002Finstall_linux.md#rpm)\n- [Precompiled binaries](docs\u002Finstall_linux.md#precompiled-binaries) on [releases page][]\n\nFor additional Linux & Unix packages and installers, see [community-supported docs](docs\u002Finstall_linux.md#community-unofficial)\n\n### [Windows](docs\u002Finstall_windows.md)\n\n- [WinGet](docs\u002Finstall_windows.md#winget)\n- [Precompiled binaries](docs\u002Finstall_windows.md#precompiled-binaries) on [releases page][]\n\nFor additional Windows packages and installers, see [community-supported docs](docs\u002Finstall_windows.md#community-unofficial)\n\n### Build from source\n\nSee here on how to [build GitHub CLI from source](docs\u002Finstall_source.md).\n\n### GitHub Codespaces\n\nTo add GitHub CLI to your codespace, add the following to your [devcontainer file](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fcodespaces\u002Fsetting-up-your-project-for-codespaces\u002Fadding-features-to-a-devcontainer-file):\n\n```json\n\"features\": {\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgithub-cli:1\": {}\n}\n```\n\n### GitHub Actions\n\n[GitHub-hosted runners](https:\u002F\u002Fdocs.github.com\u002Fen\u002Factions\u002Fusing-github-hosted-runners\u002Fabout-github-hosted-runners) have the GitHub CLI pre-installed, which is updated weekly.\n\nIf a specific version is needed, your GitHub Actions workflow will need to install it based on the [macOS](#macos), [Linux & Unix](#linux--unix), or [Windows](#windows) instructions above.\n\nFor information on all pre-installed tools, see [`actions\u002Frunner-images`](https:\u002F\u002Fgithub.com\u002Factions\u002Frunner-images)\n\n### Verification of binaries\n\nSince version 2.50.0, `gh` has been producing [Build Provenance Attestation](https:\u002F\u002Fgithub.blog\u002Fchangelog\u002F2024-06-25-artifact-attestations-is-generally-available\u002F), enabling a cryptographically verifiable paper-trail back to the origin GitHub repository, git revision, and build instructions used. The build provenance attestations are signed and rely on Public Good [Sigstore](https:\u002F\u002Fwww.sigstore.dev\u002F) for PKI.\n\nThere are two common ways to verify a downloaded release, depending on whether `gh` is already installed or not. If `gh` is installed, it's trivial to verify a new release:\n\n- **Option 1: Using `gh` if already installed:**\n\n  ```shell\n  $ gh at verify -R cli\u002Fcli gh_2.62.0_macOS_arm64.zip\n  Loaded digest sha256:fdb77f31b8a6dd23c3fd858758d692a45f7fc76383e37d475bdcae038df92afc for file:\u002F\u002Fgh_2.62.0_macOS_arm64.zip\n  Loaded 1 attestation from GitHub API\n  ✓ Verification succeeded!\n\n  sha256:fdb77f31b8a6dd23c3fd858758d692a45f7fc76383e37d475bdcae038df92afc was attested by:\n  REPO     PREDICATE_TYPE                  WORKFLOW\n  cli\u002Fcli  https:\u002F\u002Fslsa.dev\u002Fprovenance\u002Fv1  .github\u002Fworkflows\u002Fdeployment.yml@refs\u002Fheads\u002Ftrunk\n  ```\n\n- **Option 2: Using Sigstore [`cosign`](https:\u002F\u002Fgithub.com\u002Fsigstore\u002Fcosign):**\n\n  To perform this, download the [attestation](https:\u002F\u002Fgithub.com\u002Fcli\u002Fcli\u002Fattestations) for the downloaded release and use cosign to verify the authenticity of the downloaded release:\n\n  ```shell\n  $ cosign verify-blob-attestation --bundle cli-cli-attestation-3120304.sigstore.json \\\n        --new-bundle-format \\\n        --certificate-oidc-issuer=\"https:\u002F\u002Ftoken.actions.githubusercontent.com\" \\\n        --certificate-identity=\"https:\u002F\u002Fgithub.com\u002Fcli\u002Fcli\u002F.github\u002Fworkflows\u002Fdeployment.yml@refs\u002Fheads\u002Ftrunk\" \\\n        gh_2.62.0_macOS_arm64.zip\n  Verified OK\n  ```\n\n## Comparison with hub\n\nFor many years, [hub](https:\u002F\u002Fgithub.com\u002Fgithub\u002Fhub) was the unofficial GitHub CLI tool. `gh` is a new project that helps us explore\nwhat an official GitHub CLI tool can look like with a fundamentally different design. While both\ntools bring GitHub to the terminal, `hub` behaves as a proxy to `git`, and `gh` is a standalone\ntool. Check out our [more detailed explanation](docs\u002Fgh-vs-hub.md) to learn more.\n\n[releases page]: https:\u002F\u002Fgithub.com\u002Fcli\u002Fcli\u002Freleases\u002Flatest\n","GitHub CLI 是 GitHub 的官方命令行工具，旨在将拉取请求、问题等 GitHub 功能集成到终端中，使开发者能够在使用 git 和代码的同时便捷地进行操作。该项目采用 Go 语言开发，具备强大的 API 支持（包括 GitHub API v4），支持 macOS、Windows 和 Linux 系统，并且可以与 GitHub.com 及其企业版无缝对接。适用于需要频繁与 GitHub 交互的开发者，尤其是在持续集成\u002F持续部署(CI\u002FCD)流水线中自动化执行任务或希望在本地环境中高效管理 GitHub 资源的场景。",2,"2026-06-11 02:40:43","top_all"]