From 1c7f986d42a2a57aaecb10bd1ed4d19806a04c05 Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Fri, 12 Jun 2026 18:30:34 +0800 Subject: [PATCH] Mark airflow dags list as migrated to airflowctl --- airflow-core/src/airflow/cli/commands/dag_command.py | 1 + .../tests/unit/cli/commands/test_command_deprecations.py | 1 + 2 files changed, 2 insertions(+) diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py b/airflow-core/src/airflow/cli/commands/dag_command.py index 78ceba514ec7e..d2d303b498c0a 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -528,6 +528,7 @@ def iter_next_dagrun_info() -> Iterator[DagRunInfo | None]: print(value) +@deprecated_for_airflowctl("airflowctl dags 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 e2e02be9f49e9..20fc203595301 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -50,6 +50,7 @@ (connection_command.create_default_connections, "airflowctl connections create-defaults"), (dag_command.dag_trigger, "airflowctl dags trigger"), (dag_command.dag_delete, "airflowctl dags delete"), + (dag_command.dag_list_dags, "airflowctl dags list"), (dag_command.dag_details, "airflowctl dags get-details"), (dag_command.dag_list_import_errors, "airflowctl dags list-import-errors"), (dag_command.dag_pause, "airflowctl dags pause"),