Cloud Composer 1 is in the post-maintenance mode. Google does not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. We recommend planning migration to Cloud Composer 2.
You can manage and access Cloud Composer environments
with gcloud composer commands provided by
Google Cloud CLI.
To start with the gcloud tool, review
the Google Cloud CLI documentation.
You can get help for the tool, resources, and commands by using the --help
flag:
gcloudcomposerenvironments--help
The help displayed with the --help flag is also available in the
Google Cloud CLI reference for gcloud composer.
Setting the default project and location in your local client
Most gcloud composer commands require a location. You can specify the
location by using the --location flag or by setting the default location.
To set the default project and location for Cloud Composer:
Set the default project by running the following command:
gcloudconfigsetprojectPROJECT_ID
Replace the following:
PROJECT_ID: the Project ID of the
project where your Cloud Composer environment is located.
Configure the Cloud Composer location by running the following
command:
gcloudconfigsetcomposer/locationLOCATION
Replace the following:
LOCATION: the region where the environment is located, such as
us-central1 or europe-west1.
(Optional) To list the configuration for Google Cloud CLI, you can run the
following command:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[[["This page explains how to use the Google Cloud CLI tool to interact with Cloud Composer environments."],["Before using the `gcloud composer` commands, the Cloud Composer API must be enabled, and Google Cloud CLI needs to be installed on your local client."],["You can set a default project and location for Cloud Composer using the `gcloud config set` command, eliminating the need to repeatedly specify them with each command."],["The `--help` flag can be used with `gcloud composer` commands to display help information, which is also available in the Google Cloud CLI reference documentation."]]],[]]