This is an automated email from the ASF dual-hosted git repository.
henry3260 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 3bb4fdb41f7 Mark airflow dags list as migrated to airflowctl (#68444)
3bb4fdb41f7 is described below
commit 3bb4fdb41f79e014587406d1521cd905b506454e
Author: Henry Chen <[email protected]>
AuthorDate: Wed Jul 8 23:36:29 2026 +0800
Mark airflow dags list as migrated to airflowctl (#68444)
---
airflow-core/src/airflow/cli/commands/dag_command.py | 1 +
airflow-core/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 78ceba514ec..d2d303b498c 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 dag_next_execution(args) -> 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 e2e02be9f49..20fc2035953 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 @@ MIGRATED_CLI_COMMANDS = [
(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"),