This is an automated email from the ASF dual-hosted git repository.
henry3260 pushed a commit to branch v3-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-3-test by this push:
new 0246a8142e7 [v3-3-test] Mark airflow dags list as migrated to
airflowctl (#68444) (#69621)
0246a8142e7 is described below
commit 0246a8142e7ae4e30d231e12bf24849a5022f3cc
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jul 9 01:39:19 2026 +0800
[v3-3-test] Mark airflow dags list as migrated to airflowctl (#68444)
(#69621)
(cherry picked from commit 3bb4fdb41f79e014587406d1521cd905b506454e)
Co-authored-by: Henry Chen <[email protected]>
---
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 ec5b62ca1d3..0ba3ebd6374 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 0308e5f7230..bdd8ef16448 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_pause, "airflowctl dags pause"),
(dag_command.dag_unpause, "airflowctl dags unpause"),