This is an automated email from the ASF dual-hosted git repository.

jedcunningham 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 a703ccfd168 Add `airflow webserver` to legacy commands (#47131)
a703ccfd168 is described below

commit a703ccfd168d40fbd18baa779c1f32afa544f2f9
Author: Jed Cunningham <[email protected]>
AuthorDate: Thu Feb 27 08:14:32 2025 -0700

    Add `airflow webserver` to legacy commands (#47131)
    
    `airflow webserver` was added to the list of legacy commands, which
    means users will be informed of the replacement instead of just getting
    a generic error:
    
    ```
    $ airflow webserver
    Usage: airflow [-h] GROUP_OR_COMMAND ...
    ...
    airflow command error: argument GROUP_OR_COMMAND: Command `airflow 
webserver` has been removed. Please use `airflow api-server`, see help above.
    ```
---
 airflow/cli/commands/legacy_commands.py |  1 +
 newsfragments/47131.significant.rst     | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/airflow/cli/commands/legacy_commands.py 
b/airflow/cli/commands/legacy_commands.py
index c9fddec2d76..11016a427dc 100644
--- a/airflow/cli/commands/legacy_commands.py
+++ b/airflow/cli/commands/legacy_commands.py
@@ -48,6 +48,7 @@ COMMAND_MAP = {
     "create_user": "users create",
     "delete_user": "users delete",
     "dags backfill": "backfill create",
+    "webserver": "api-server",
 }
 
 
diff --git a/newsfragments/47131.significant.rst 
b/newsfragments/47131.significant.rst
new file mode 100644
index 00000000000..e8bf03ff3ea
--- /dev/null
+++ b/newsfragments/47131.significant.rst
@@ -0,0 +1,12 @@
+The Airflow UI is now started with the ``airflow api-server`` command. The 
``airflow webserver`` command has been removed.
+
+* Types of change
+
+  * [ ] Dag changes
+  * [ ] Config changes
+  * [ ] API changes
+  * [x] CLI changes
+  * [ ] Behaviour changes
+  * [ ] Plugin changes
+  * [ ] Dependency changes
+  * [ ] Code interface changes

Reply via email to