To more strongly embrace the success and growing customer preference for OSS solutions, Cloud Composer is evolving to become Managed Service for Apache Airflow . This name change provides improved customer understanding of our portfolio while reinforcing our commitment to being the most open cloud ecosystem.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
发送反馈
将 Google Cloud CLI 与 Managed Airflow 搭配使用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍了如何开始将 Google Cloud CLI 与 Managed Service for Apache Airflow 环境搭配使用。
准备工作
开始使用 gcloud 命令行工具
您可以使用 Google Cloud CLI 提供的 gcloud composer 命令来管理和访问 Managed Airflow 环境
。
如需开始使用 gcloud 工具,请查看
Google Cloud CLI 文档 。
您可以使用 --help 标志来获取工具、资源和命令的帮助:
gcloud composer environments --help
通过 --help 标志显示的帮助信息也可以在
Google Cloud CLI 参考文档 的 gcloud composer 相关文档中找到。
在本地客户端中设置默认项目和位置
大多数 gcloud composer 命令需要位置信息。您可以使用 --location 标志指定位置,也可以设置默认位置。
如需为 Managed Airflow 设置默认项目和位置,请执行以下操作:
运行以下命令来设置默认项目:
gcloud config set project PROJECT_ID
替换以下内容:
PROJECT_ID:Managed Airflow 环境所在项目的项目 ID 。
运行以下命令来配置 Managed Airflow 位置:
gcloud config set composer/location LOCATION
替换以下内容:
LOCATION:环境所在的区域,例如 us-central1 或 europe-west1。
(可选)如需列出 Google Cloud CLI 的配置,您可以运行以下命令:
gcloud config list
后续步骤
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-05-19。
需要向我们提供更多信息?
[[["易于理解","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):2026-05-19。"],[],[]]