diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py b/airflow-core/src/airflow/cli/commands/dag_command.py index ec5b62ca1d3f4..78ceba514ec7e 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -760,6 +760,7 @@ def dag_list_jobs(args, dag: DAG | None = None, *, session: Session = NEW_SESSIO ) +@deprecated_for_airflowctl("airflowctl dagrun list") @cli_utils.action_cli @suppress_logs_and_warning @providers_configuration_loaded diff --git a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py index c06605c80ae13..e2e02be9f49e9 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -54,6 +54,7 @@ (dag_command.dag_list_import_errors, "airflowctl dags list-import-errors"), (dag_command.dag_pause, "airflowctl dags pause"), (dag_command.dag_unpause, "airflowctl dags unpause"), + (dag_command.dag_list_dag_runs, "airflowctl dagrun list"), (pool_command.pool_list, "airflowctl pools list"), (pool_command.pool_get, "airflowctl pools get"), (pool_command.pool_set, "airflowctl pools create"),