Skip to content

Google Cloud 别名

Google Cloud SDK 命令行的易记快捷方式。

概述

这些别名定义在 gcloud.aliases.sh 中,由 chezmoi 自动加载。它们包装了常用的 Google Cloud SDK 命令,简化 Compute Engine、IAM、Cloud SQL 和其他 GCP 服务的管理。

参考

核心命令

别名描述
gcd将默认项目设置为当前目录名
gck列出所有配置
gcsa设置当前配置的账户
gcso打开当前项目的 Google Cloud 控制台

Compute Engine

别名描述
gci管理 Compute Engine 实例
gcca管理 Compute Engine IP 地址
gccc创建新的虚拟机实例
gcco通过 SSH 连接虚拟机实例
gcpha显示 Compute Engine IP 地址详情

存储和数据库

别名描述
gcss管理 Cloud Storage
gcsq管理 Cloud SQL
gcdb管理 Cloud Datastore

无服务器和容器

别名描述
gcf管理 Cloud Functions
gcro管理 Cloud Run
gcu管理 App Engine
gcs管理 Kubernetes Engine 集群
gcr从 Container Registry 删除容器镜像

数据和分析

别名描述
gcdp管理 Cloud Dataproc
gcps管理 Cloud Pub/Sub

网络和安全

别名描述
gcn管理 Cloud Networks
gcic管理身份和访问管理
gcki管理 Cloud KMS

运维和监控

别名描述
gcla管理 Cloud Logging
gcma管理 Cloud Monitoring
gclb管理 Cloud Build
gct管理 Cloud Tasks