usage

GitHub CLI 2.96.0

工具與目錄
在這頁

新功能 4 項

01

免登入下載公開專案的發布檔

你是不是常在沒有登入帳號的乾淨電腦上,只想快速下載某個公開專案的安裝檔,卻被登入提示卡住?以往即使你想抓取的軟體是放在完全公開的專案中,執行命令時,系統還是會硬性要求進行 authentication(驗證程序,確認使用者身分的程序)才能下載。現在這個不方便的門檻被移除了,只要是公開專案,任何人都可以免登入直接把發布檔抓下來。這就像走進免費開放的市立圖書館拿一份導覽手冊,以前警衛還會擋在門口硬要你掏出借書證來登記,現在只要是公開擺在架上的東西,你推開門就能直接拿走。當你在新主機上需要快速抓取公開安裝檔時,這正是你輸入 gh release download 的時刻,保證一路暢通。

官方原文

Allow gh release download without authentication on public repositories by @BagToad in [#13723](https://github.com/cli/cli/pull/13723)

02

廣納更多 AI 代理工具,技能安裝更聽話

你正在為 AI 代理工具配置新的擴充能力,卻因為指令一直彈出不必要的提問而感到心煩?這次更新擴大了支援,讓 gh skill 指令能自動偵測更多第三方的 coding agents(寫程式碼代理,能協助撰寫程式碼的 AI 助手),並完整支援 antigravity-cli 與 antigravity2.0。此外,通用技能的預設安裝路徑也更正為 ~/.agents/skills;更棒的是,如果你已經指定了安裝目錄參數,系統就不會再彈出冗餘的 prompt(互動提示,指程式在終端機中要求使用者輸入或選擇的畫面),會直接遵守你的選擇。這就像買了一支萬用遙控器,它學會了最新電視的頻率,而且當你指著電視按開關時,它不會再跳出選單囉唆地問你要遙控哪台設備。當你想自訂路徑且不想被打擾,這正是你使用 gh skill 指令的時刻。

官方原文

Detect additional third-party coding agents by @BagToad in [#13722](https://github.com/cli/cli/pull/13722)

Support antigravity-cli and antigravity2.0 in gh skill by @BagToad in [#13784](https://github.com/cli/cli/pull/13784)

fix(skills): install universal agent to ~/.agents/skills by @toller892 in [#13681](https://github.com/cli/cli/pull/13681)

fix(skills): honor --dir without agent prompt by @happysnaker in [#13766](https://github.com/cli/cli/pull/13766)

@happysnaker made their first contribution in https://github.com/cli/cli/pull/13756

@toller892 made their first contribution in https://github.com/cli/cli/pull/13681

03

資料庫識別碼升級與工作流安全性補強

當專案資料庫的識別碼數量日益膨脹,或是自動化工作流面臨被惡意修改的安全風險?為了解決底層的潛在危機,系統在多處細節做出了補強。首先,將 database IDs(資料庫識別碼,用來標示每筆資料唯一身分的數字代號)的資料型態升級為更大的 64 位元整數,防止隨著 GitHub 資料量成長而溢位。同時,將可重複使用的 triage workflows(工作流,特定事件觸發時自動執行的指令腳本)固定在特定的 commit SHA,防止工作流遭到篡改,並在說明中澄清了複製指令的行為。這就像將倉庫的舊鎖頭升級,把不夠大的抽屜換成超大保險櫃,並對自動門鎖裝上硬體鎖定,不管資料如何成長或外部如何變化,系統都能牢牢守護一切,不再因老舊漏洞而動搖。

官方原文

Use int64 for GitHub database IDs by @williammartin in [#13403](https://github.com/cli/cli/pull/13403)

Pin reusable triage workflows to a commit SHA by @BagToad in [#13705](https://github.com/cli/cli/pull/13705)

Add security disclosure guidance to AGENTS.md by @BagToad in [#13720](https://github.com/cli/cli/pull/13720)

Clarify --clone boolean flag behaviour in gh repo fork help by @BagToad in [#13786](https://github.com/cli/cli/pull/13786)

Fix flaky TestHuhPrompterMultiSelectWithSearchPersistence on slow architectures by @pdostal in [#13675](https://github.com/cli/cli/pull/13675)

04

說明文件優化與依賴套件版本升級

你正在為專案尋找更多搜尋範例以提升開發效率,或者想讓部署流程跑得更穩定無誤?為了讓開發者使用更順暢,本次更新在搜尋文件補上了多個 qualifiers(限定符,用來過濾或精準匹配搜尋結果的修飾關鍵字)的實用範例,並修復了發布流程文件裡失效的 anchor link(錨點連結,指向網頁內特定段落的書籤連結)。同時,開發團隊也為多個內部依賴套件進行了版本升級。這就像重新繪製了大樓裡印錯的樓層指引招牌,並順手更換了多個老舊零件。這些微小的保養工作雖然不顯眼,卻能保證每位訪客都不會在大樓中迷路,也讓整座系統運作得更穩定安全。

官方原文

docs(search): add examples for multiple qualifiers by @happysnaker in [#13756](https://github.com/cli/cli/pull/13756)

docs: fix broken anchor link in release-process-deep-dive by @patrickwehbe in [#13688](https://github.com/cli/cli/pull/13688)

docs: fix broken install command and link/grammar errors by @patrickwehbe in [#13690](https://github.com/cli/cli/pull/13690)

docs: fix duplicated word in primer README by @s3onghyun in [#13677](https://github.com/cli/cli/pull/13677)

chore(deps): bump github.com/microsoft/dev-tunnels from 0.1.19 to 0.1.27 by @dependabot in [#13708](https://github.com/cli/cli/pull/13708)

chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot in [#13703](https://github.com/cli/cli/pull/13703)

chore(deps): bump github.com/google/go-containerregistry from 0.21.6 to 0.21.7 by @dependabot in [#13702](https://github.com/cli/cli/pull/13702)

chore(deps): bump actions/setup-go from 6.4.0 to 6.5.0 by @dependabot in [#13740](https://github.com/cli/cli/pull/13740)

chore(deps): bump actions/attest from 4.1.0 to 4.1.1 by @dependabot in [#13754](https://github.com/cli/cli/pull/13754)

chore(deps): bump goreleaser/goreleaser-action from 7.2.2 to 7.2.3 by @dependabot in [#13759](https://github.com/cli/cli/pull/13759)

chore(deps): bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot in [#13779](https://github.com/cli/cli/pull/13779)

@patrickwehbe made their first contribution in https://github.com/cli/cli/pull/13688

修正 1 項

05

修正 Codespace 轉發當機與 CI 狀態空白

你是否遇過雲端開發環境突然崩潰,或是自動化檢查被取消後,狀態欄只顯示一片空白?這次修復專門為這些不穩定的角落提供保護。首先,處理 codespace port forwarding(連接埠轉發,將雲端開發機器的網路連接埠導引至本機的傳輸技術)時,背後因 concurrent map writes(併發寫入衝突,指多個處理程序同時修改同一份內部資料造成的當機錯誤)導致連線崩潰的問題已解決。此外,當 CI checks(自動化檢查)被全部取消時,摘要畫面的空白已被老實顯示的取消通知取代。這就像餐廳裡兩個服務生同時往同個格子上寫點單,紙張撕破導致系統當機的問題被修好了;而且如果整桌退單,看板也會清楚寫明「已取消」而非留下一塊讓人瞎猜的空白黑板。

官方原文

fix: show checks summary when all checks were cancelled by @s3onghyun in [#13679](https://github.com/cli/cli/pull/13679)

Fix concurrent map writes in codespace port forwarding by @williammartin in [#13313](https://github.com/cli/cli/pull/13313)

@s3onghyun made their first contribution in https://github.com/cli/cli/pull/13679