安装快照软件包
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果您更喜欢自动更新,可以在 Ubuntu 系统上使用快照软件包安装 Google Cloud CLI。此软件包仅包含 gcloud CLI、gcloud alpha
、gcloud beta
、gsutil
、docker-credential-gcloud
和 bq
命令,而不包含 kubectl
或使用 gcloud CLI 部署应用所需的 App Engine 扩展程序。如果您需要这些组件,请改为安装 Debian 软件包。
-
如果您已安装旧的 Snap 软件包
google-cloud-sdk
,请在命令行中将其移除:
snap remove google-cloud-sdk
如果不移除此软件包,便无法安装新的快照软件包,因为两次安装都需要相同的别名。
-
在命令行中,安装 gcloud CLI 快照软件包:
snap install google-cloud-cli --classic
-
可选。如需将 gcloud CLI 工具添加到
PATH
并在 Bash shell 中启用命令补全功能,请在配置文件中用 source 命令执行 /path/to/gcloud/completion.bash.inc
。
对于 Zsh shell,请改用 /path/to/gcloud/completion.zsh.inc
。
-
如需初始化 gcloud CLI 并开始使用,请运行
gcloud init
:gcloud init
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-11-16。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]