diff --git a/airflow-core/src/airflow/cli/commands/task_command.py b/airflow-core/src/airflow/cli/commands/task_command.py
index e2a1ab28e0495..b8cae95ae8087 100644
--- a/airflow-core/src/airflow/cli/commands/task_command.py
+++ b/airflow-core/src/airflow/cli/commands/task_command.py
@@ -493,6 +493,7 @@ def task_render(args, dag: DAG | None = None) -> None:
)
+@deprecated_for_airflowctl("airflowctl tasks clear")
@cli_utils.action_cli(check_db=False)
@providers_configuration_loaded
def task_clear(args) -> None:
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 65982d65adb6f..59d26a12864cb 100644
--- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py
+++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py
@@ -76,6 +76,7 @@
(config_command.get_value, "airflowctl config get"),
(config_command.show_config, "airflowctl config list"),
(task_command.task_states_for_dag_run, "airflowctl tasks states-for-dag-run"),
+ (task_command.task_clear, "airflowctl tasks clear"),
]
diff --git a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
index 87d9851cbf0c0..d2440f05d2466 100644
--- a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
+++ b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
@@ -99,6 +99,7 @@ def date_param():
# Tasks commands
'tasks states-for-dag-run example_bash_operator "manual__{date_param}"',
'tasks states-for-dag-run example_bash_operator --logical-date "{date_param}"',
+ 'tasks clear example_bash_operator --dag-run-id "manual__{date_param}" --task-ids runme_0 -o json',
# Task Instances commands
'taskinstances list example_bash_operator "manual__{date_param}"',
# XCom commands - need a Dag run with completed tasks
diff --git a/airflow-ctl/docs/images/command_hashes.txt b/airflow-ctl/docs/images/command_hashes.txt
index 10e59c5959f8b..74b5ede7ce3a2 100644
--- a/airflow-ctl/docs/images/command_hashes.txt
+++ b/airflow-ctl/docs/images/command_hashes.txt
@@ -1,4 +1,4 @@
-main:0460d9c03248bee26207b20b05aa36b9
+main:2c358f5fc894541cab11854dcd67658a
assets:6419e20452692f577c4c6f570b74be0c
auth:d79e9c7d00c432bdbcbc2a86e2e32053
backfill:74c8737b0a62a86ed3605fa9e6165874
@@ -10,7 +10,7 @@ jobs:a5b644c5da8889443bb40ee10b599270
pools:19efe105b9515ab1926ebcaf0e028d71
providers:34502fe09dc0b8b0a13e7e46efdffda6
taskinstances:7e323968c0b585287c2a4ab4339aee1f
-tasks:089b19625c893d189b5fc02b3abd547e
+tasks:e2ed0ab7f67ebacf4be87b5f396ff782
variables:f8fc76d3d398b2780f4e97f7cd816646
version:31f4efdf8de0dbaaa4fac71ff7efecc3
plugins:4864fd8f356704bd2b3cd1aec3567e35
diff --git a/airflow-ctl/docs/images/output_main.svg b/airflow-ctl/docs/images/output_main.svg
index 9c8cec5269b68..2a39e7e0ce2dd 100644
--- a/airflow-ctl/docs/images/output_main.svg
+++ b/airflow-ctl/docs/images/output_main.svg
@@ -19,114 +19,114 @@
font-weight: 700;
}
- .terminal-3519450412-matrix {
+ .terminal-151424782-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
- .terminal-3519450412-title {
+ .terminal-151424782-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
- .terminal-3519450412-r1 { fill: #ff8700 }
-.terminal-3519450412-r2 { fill: #c5c8c6 }
-.terminal-3519450412-r3 { fill: #808080 }
-.terminal-3519450412-r4 { fill: #68a0b3 }
+ .terminal-151424782-r1 { fill: #ff8700 }
+.terminal-151424782-r2 { fill: #c5c8c6 }
+.terminal-151424782-r3 { fill: #808080 }
+.terminal-151424782-r4 { fill: #68a0b3 }
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -138,39 +138,39 @@
-
+
-
- Usage:airflowctl [-h] GROUP_OR_COMMAND...
-
-Positional Arguments:
-GROUP_OR_COMMAND
-
- Groups
-assetsPerform Assets operations
-authManage authentication for CLI. Either pass token from
-environment variable/parameter or pass username and
-password.
-backfillPerform Backfill operations
-configPerform Config operations
-connectionsPerform Connections operations
-dagrunPerform DagRun operations
-dagsPerform Dags operations
-jobsPerform Jobs operations
-pluginsPerform Plugins operations
-poolsPerform Pools operations
-providersPerform Providers operations
-taskinstances
-Perform TaskInstances operations
-tasksManage Airflow tasks
-variablesPerform Variables operations
-xcomPerform XCom operations
-
- Commands:
-versionShow version information
-
-Options:
--h, --helpshow this help message and exit
+
+ Usage:airflowctl [-h] GROUP_OR_COMMAND...
+
+Positional Arguments:
+GROUP_OR_COMMAND
+
+ Groups
+assetsPerform Assets operations
+authManage authentication for CLI. Either pass token from
+environment variable/parameter or pass username and
+password.
+backfillPerform Backfill operations
+configPerform Config operations
+connectionsPerform Connections operations
+dagrunPerform DagRun operations
+dagsPerform Dags operations
+jobsPerform Jobs operations
+pluginsPerform Plugins operations
+poolsPerform Pools operations
+providersPerform Providers operations
+taskinstances
+Perform TaskInstances operations
+tasksPerform Tasks operations
+variablesPerform Variables operations
+xcomPerform XCom operations
+
+ Commands:
+versionShow version information
+
+Options:
+-h, --helpshow this help message and exit
diff --git a/airflow-ctl/docs/images/output_tasks.svg b/airflow-ctl/docs/images/output_tasks.svg
index d9349c117529b..f3fa3c4d94506 100644
--- a/airflow-ctl/docs/images/output_tasks.svg
+++ b/airflow-ctl/docs/images/output_tasks.svg
@@ -1,4 +1,4 @@
-