⌕
GitHub CLI

GitHub CLI 2.104.0

GitHub 官方命令列工具,在終端機管理倉庫與 PR。

绿色版WindowsMIT
发布 2026-11-12 · 核验 2026-11-16
立即下载

软件简介

GitHub CLI(gh)在終端機完成建立倉庫、開 PR、看 Issue、跑 Actions 等操作,可寫腳本自動化 GitHub 流程。

功能特点

  • 終端機管理 PR 與 Issue
  • Actions 狀態查詢
  • 可寫腳本自動化
  • 支援 GitHub Enterprise
更新日志 · 2.104.0

Protect private forks when deleting repositories

gh repo delete now warns when deleting a private or internal repository will also delete its forks. The additional confirmation is required even with --yes.

Non-interactive workflows and agents must explicitly accept the cascading deletion:

```shell

gh repo delete OWNER/REPO --yes --accept-cascading-deletion-of-private-forks

```

What's Changed

✨ Features

  • Require confirmation before gh repo delete deletes private forks by @BagToad in #14858

🐛 Fixes

  • fix(auth status): surface underlying rate-limit, server, and network errors in terminal output by @babakks and @Copilot in #15009
  • fix(auth): skip token refresh when gh's state directory is not writable by @babakks in #14845

📚 Docs & Chores

  • Use REST to apply issue triage labels by @BagToad in #15041
  • Prevent repeated Dependabot triage assessments by @BagToad in #15002
  • Apply issue triage labels directly by @BagToad in #15001
  • Provide verified build versions to issue triage by @BagToad in #15000
  • Use a synthetic namespace for triage fixtures by @BagToad in #14976
  • Remove the accidental issue-triage model pin by @BagToad in #14972
  • Add a fake GitHub API runner for reproductions by @BagToad in #14951
  • Clarify which hosts use GH_ENTERPRISE_TOKEN by @BagToad in #14918
  • Regenerate triage workflows with gh-aw v1.0.1 by @tidy-dev in #14910
  • Test the ShowRefs option separator by @BagToad in #14879
  • Fix local extension-install test path normalization by @bobrik in #14854
  • Save Go caches only from trunk by @williammartin in #14840
  • Add a private vulnerability report form by @BagToad in #14825
  • Replace msgpack with a minimal node ID encoder by @tj-smith47 in #14801
  • Test the Git client with real repositories by @williammartin in #14348

:dependabot: Dependencies

  • chore(deps): bump github.com/klauspost/compress from 1.20.3 to 1.20.4 by @dependabot in #15040
  • chore(deps): bump charm.land/lipgloss/v2 from 2.0.6 to 2.1.0 by @dependabot in #15039
  • chore(deps): bump Go toolchain from 1.27.3 to 1.27.4 by @github-actions[bot] in #15028
  • chore(deps): bump golang.org/x/sys from 0.49.0 to 0.50.0 by @dependabot in #15010
  • chore(deps): bump golang.org/x/sync from 0.24.0 to 0.25.0 by @dependabot in #14998
  • chore(deps): bump the codeql-actions group across 1 directory with 3 updates by @dependabot in #14964
  • chore(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0 by @dependabot in #14963
  • chore(deps): bump github.com/yuin/goldmark from 1.8.6 to 1.8.7 by @dependabot in #14907
  • chore(deps): bump charm.land/bubbletea/v2 from 2.1.0 to 2.1.1 by @dependabot in #14906
  • chore(deps): bump github.com/sigstore/sigstore-go from 1.3.0 to 1.4.0 by @dependabot in #14905
  • chore(deps): bump google.golang.org/grpc from 1.84.0 to 1.85.0 by @dependabot in #14878
  • chore(deps): bump the codeql-actions group with 3 updates by @dependabot in #14824

New Contributors

  • @tj-smith47 made their first contribution in https://github.com/cli/cli/pull/14801
  • @bobrik made their first contribution in https://github.com/cli/cli/pull/14854

Full Changelog: https://github.com/cli/cli/compare/v2.103.3...v2.104.0

下载地址

官方下载直接指向软件作者的发布地址;网盘镜像为同一文件的转存,下载后可用 SHA-256 核对(官方未提供校验值的文件除外)。

  • Windows x64 · 安裝包 MSIgh_2.104.0_windows_amd64.msi · 14.7 MB
  • Windows x64 · 绿色版 ZIP 绿色免安装gh_2.104.0_windows_amd64.zip · 14.5 MB

相关推荐