원클릭으로
gcloud-composer
Cloud Composer via gcloud (`gcloud composer`). Create and manage Cloud Composer Environments — environments, operations.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Cloud Composer via gcloud (`gcloud composer`). Create and manage Cloud Composer Environments — environments, operations.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
gcloud CLI reference: 128 GCP services, all GA commands with full flags, plus the standalone bq CLI. Use for any Google Cloud / GCP command-line task — managing resources, debugging gcloud commands, auth/config/scripting — or whenever a GCP product is named (GKE, Cloud Run, BigQuery, Cloud SQL, Pub/Sub...), even without 'gcloud'.
Access Approval via gcloud (`gcloud access-approval`). Manage Access Approval requests and settings — requests, service-account, settings.
Access Context Manager (VPC Service Controls) via gcloud (`gcloud access-context-manager`). Manage Access Context Manager resources — authorized-orgs, cloud-bindings, levels, perimeters, policies, supported-services.
Managed Service for Microsoft AD via gcloud (`gcloud active-directory`). Manage Managed Microsoft AD resources — domains, operations, peerings.
Agent Registry via gcloud (`gcloud agent-registry`). Manage Agent Registry resources — agents, bindings, endpoints, mcp-servers, operations, services.
AI Platform (legacy) via gcloud (`gcloud ai-platform`). Manage AI Platform jobs and models — jobs, local, models, operations, versions.
| name | gcloud-composer |
| description | Cloud Composer via gcloud (`gcloud composer`). Create and manage Cloud Composer Environments — environments, operations. |
Cloud Composer (branded as Managed Service for Apache Airflow) is a fully managed workflow orchestration service built on Apache Airflow. Each environment provisions a GKE-backed Airflow stack — scheduler, workers, web server, Airflow metadata database, and a Cloud Storage bucket for DAGs, plugins, and data — so you run native Airflow without managing the infrastructure. Reach for gcloud composer to create and size environments, deploy and run DAGs, install PyPI dependencies, and upgrade or snapshot environments. Commands fall into two groups: composer environments (the bulk of the surface) and composer operations (track long-running async work).
gcloud services enable composer.googleapis.com
# Create with an explicit image version, size, and node service account
gcloud composer environments create my-env \
--location=us-central1 \
--image-version=composer-2-airflow-2 \
--environment-size=small \
--service-account=my-sa@PROJECT.iam.gserviceaccount.com
# List environments across one or more regions (note: --locations, plural)
gcloud composer environments list --locations=us-central1
# Full details of one environment (note: --location, singular)
gcloud composer environments describe my-env --location=us-central1
# Import a local DAG file into the environment's dags/ folder in GCS
gcloud composer environments storage dags import my-env \
--location=us-central1 \
--source=my_dag.py
# Confirm the upload
gcloud composer environments storage dags list \
--environment=my-env --location=us-central1
# Trigger a DAG remotely via the Airflow 2 CLI (flags go after --)
gcloud composer environments run my-env --location=us-central1 \
dags trigger -- my_dag_id
# Inspect runs for that DAG
gcloud composer environments run my-env --location=us-central1 \
dags list-runs -- --dag-id my_dag_id
# Install/pin a single package
gcloud composer environments update my-env \
--location=us-central1 \
--update-pypi-package="scipy>=1.7.0"
# Install from a requirements file
gcloud composer environments update my-env \
--location=us-central1 \
--update-pypi-packages-from-file=requirements.txt
# Verify what is installed on a worker
gcloud composer environments list-packages my-env --location=us-central1
# See the suggested image-version upgrades
gcloud composer environments list-upgrades my-env --location=us-central1
# Pre-flight: confirm the target version has no PyPI conflicts
gcloud composer environments check-upgrade my-env \
--location=us-central1 --airflow-version=2.9.3
# Apply the upgrade asynchronously, then poll the operation
gcloud composer environments update my-env \
--location=us-central1 --airflow-version=2.9.3 --async
gcloud composer operations list --locations=us-central1
gcloud composer operations wait OPERATION_ID --location=us-central1
# Save the current environment state to a GCS path
gcloud composer environments snapshots save my-env \
--location=us-central1 \
--snapshot-location=gs://my-backup-bucket/snapshots
# Load a specific snapshot back into an environment
gcloud composer environments snapshots load my-env \
--location=us-central1 \
--snapshot-path=gs://my-backup-bucket/snapshots/my-env-snapshot-TIMESTAMP
| Group | Reference file | Commands | Description |
|---|---|---|---|
composer environments | environments.md | 37 | Create, configure, run, upgrade, and snapshot environments; manage DAG/data/plugin storage, ConfigMaps, and Secrets |
composer operations | operations.md | 4 | Describe, list, wait on, and delete long-running async operations |
See index.md for a one-line index of all 41 commands.
environments commands take --location=REGION (singular). The two list commands (environments list, operations list) instead take --locations=REGION,... (plural, comma-separated for multiple regions). You can also set a default via gcloud config set composer/location us-central1.create, update, delete, check-upgrade, restart-web-server, database-failover, snapshots save/load) accept --async to return immediately. Track the returned operation with gcloud composer operations describe|wait|list.environments run separator. The Airflow sub-command goes after the environment/location args; any flags for the sub-command must follow a literal --, e.g. ... run my-env --location=us-central1 dags trigger -- my_dag. Airflow 2 uses two-word sub-commands (dags trigger, dags list); Airflow 1.10.x uses trigger_dag, list_dags.update takes exactly one change per invocation. Its mutually-exclusive flag group means you supply one mutation at a time (e.g. --node-count, --environment-size, --airflow-version, --update-pypi-package, --update-labels/--remove-labels, --update-env-variables). Run multiple update commands for multiple changes.storage {dags,data,plugins} {import,export,delete,list} move files in/out of the environment's GCS bucket. import needs --source; export needs --destination; the environment may be passed positionally or via --environment, and --location is required.gcloud composer environments list --locations=us-central1 --format="table(name, state, config.softwareConfig.imageVersion)"gcloud composer operations list --locations=us-central1 --filter="metadata.operationType=UPDATE" --sort-by=~metadata.createTimegcloud composer environments describe my-env --location=us-central1 --format="value(config.dagGcsPrefix)" to grab the DAGs bucket path.--service-account explicitly at create time; it cannot be changed later.gcloud beta composer and gcloud alpha composer expose the same environments and operations groups as GA. The features the alpha track historically incubated — user-workloads-config-maps, user-workloads-secrets, database-failover, fetch-database-properties, list-workloads (Composer 3+), and snapshots load/save — are all now in GA and documented in environments.md. There are no beta- or alpha-exclusive sub-commands required for core workflows; use GA (gcloud composer) for production.
composer environments and composer operations command/flag reference.create flags for size, networking, security, and config.check-upgrade, list-upgrades, and update --airflow-version/--image-version.--update-pypi-package and --update-pypi-packages-from-file.storage dags sub-commands.