Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
安裝 Google Cloud CLI
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本文說明如何安裝 Google Cloud CLI,再安裝 Google Distributed Cloud。
如要安裝 Google Distributed Cloud,您需要 gcloud CLI 中的特定工具。請按照下列步驟安裝工具,包括升級現有的 gcloud CLI 安裝項目。
如要安裝 gcloud CLI 和相關工具,請按照下列步驟操作:
安裝 gcloud CLI:
安裝 gcloud CLI,但略過 gcloud init 指令。
如果您已安裝某個版本,請執行下列指令,列出您擁有的元件和版本:
gcloud components list
如果您有 latest available version,且 anthos-auth 和 kubectl 元件都為 Installed,則可以停止操作。
擷取最新元件和版本:
執行下列指令來更新 gcloud CLI:
gcloud components update
如要安裝 anthos-auth 和 kubectl 元件,請執行下列指令:
gcloud components install kubectl
gcloud components install anthos-auth
透過 Proxy 安裝
如果您受到企業 Proxy 或防火牆的保護,gcloud CLI 可能無法以預設設定來存取網際網路。
如要瞭解如何在這種情況下安裝 gcloud CLI,請參閱
在受到 Proxy/防火牆保護的情況下設定 gcloud CLI。
後續步驟
建立 Google Cloud 專案 (完整操作說明)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-11 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-11 (世界標準時間)。"],[],[]]