airflow dags test <dag_id> [execution_date]

Execute one single DagRun

Arguments

NameDescription
dag_idThe id of the dag
execution_dateThe execution date of the DAG (optional)

Options

NameDescription
-h, --helpShow this help message and exit
-c, --conf <conf>JSON string that gets pickled into the DagRun's conf attribute
--imgcat-dagrunAfter completing the dag run, prints a diagram on the screen for the current DAG Run using the imgcat tool.
--save-dagrun <save_dagrun>After completing the backfill, saves the diagram for current DAG Run to the indicated file.
--show-dagrunAfter completing the backfill, shows the diagram for current DAG Run. The diagram is in DOT language
-S, --subdir <subdir>File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'