Airflow Command-line Interface

Apache Airflow includes a command-line interface (CLI) that you can use to manage Airflow environments. The CLI is useful for tasks such as managing workflows, changing the Airflow environment, and obtaining log information. Cloud Composer simplifies Airflow CLI commands once you install the Google Cloud SDK.

Running Airflow CLI commands

You can run Airflow CLI commands on a Cloud Composer environment by using the following command:

gcloud beta composer environments run ENVIRONMENT_NAME

For example, to trigger a DAG named SOME_DAG with the ID FOO in your Cloud Composer environment:

gcloud beta composer environments run ENVIRONMENT_NAME \
trigger_dag -- SOME_DAG --run_id=FOO

Send feedback about...

Cloud Composer