gcloud_composer_environments_run (1)
NAME
- gcloud composer environments run - run an Airflow sub-command remotely in a Cloud Composer environment
SYNOPSIS
-
gcloud composer environments run (ENVIRONMENT : --location=LOCATION) SUBCOMMAND [GCLOUD_WIDE_FLAG ...] [-- CMD_ARGS ...]
DESCRIPTION
POSITIONAL ARGUMENTS
-
-
Environment resource - The environment in which to run an Airflow command. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways. To set the [project] attribute: provide the argument [environment]
on the command line with a fully specified name; provide the argument
[--project] on the command line; set the property [core/project]. This must be
specified.
-
- ENVIRONMENT
-
ID of the environment or fully qualified identifier for the environment. This
positional must be specified if any of the other arguments in this group are
specified.
- --location=LOCATION
-
Compute Engine region in which to create the environment.
-
- SUBCOMMAND
-
The Airflow CLI subcommand to run. (see
airflow.incubator.apache.org/cli.html
- [-- CMD_ARGS ...]
-
Command line arguments to the subcommand.
The '--' argument must be specified between gcloud specific args on the left and CMD_ARGS on the right. Example:
gcloud composer environments run myenv trigger_dag -- some_dag --run_id=foo
-
Environment resource - The environment in which to run an Airflow command. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways. To set the [project] attribute: provide the argument [environment]
on the command line with a fully specified name; provide the argument
[--project] on the command line; set the property [core/project]. This must be
specified.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
The following command:
- gcloud composer environments run myenv trigger_dag -- some_dag --run_id=foo
is equivalent to running the following command from a shell inside the my-environment environment:
- airflow trigger_dag some_dag --run_id=foo
NOTES
These variants are also available:
- $ gcloud alpha composer environments run $ gcloud beta composer environments run