安装 Google Cloud CLI
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本文档介绍了如何在安装 Google Distributed Cloud 之前安装 Google Cloud CLI。
如需安装 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
使用代理时安装
如果您使用公司代理或防火墙,则 gcloud CLI 可能无法使用默认设置访问互联网。
如需了解如何在这种情况下安装 gcloud CLI,请参阅
配置 gcloud CLI 以在代理/防火墙后面使用。
后续步骤
创建 Google Cloud 项目(完整说明)。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-06-27。"],[],[]]