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

onikolas 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 4ac550d7318 Adding description of restrictions on creation of a new 
team name (#62448)
4ac550d7318 is described below

commit 4ac550d7318b17b55328ae935ffe114d8e4cd49a
Author: Srabasti Banerjee <[email protected]>
AuthorDate: Sat Feb 28 09:11:23 2026 -0800

    Adding description of restrictions on creation of a new team name (#62448)
---
 airflow-core/src/airflow/cli/cli_config.py            | 3 +++
 airflow-core/src/airflow/cli/commands/team_command.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/cli/cli_config.py 
b/airflow-core/src/airflow/cli/cli_config.py
index 3ae7550f307..929bb9983d8 100644
--- a/airflow-core/src/airflow/cli/cli_config.py
+++ b/airflow-core/src/airflow/cli/cli_config.py
@@ -1444,6 +1444,9 @@ TEAMS_COMMANDS = (
     ActionCommand(
         name="create",
         help="Create a team",
+        description=(
+            "Create a team. Team names must be 3-50 characters long and 
contain only alphanumeric characters, hyphens, and underscores.\n"
+        ),
         
func=lazy_load_command("airflow.cli.commands.team_command.team_create"),
         args=(ARG_TEAM_NAME, ARG_VERBOSE),
     ),
diff --git a/airflow-core/src/airflow/cli/commands/team_command.py 
b/airflow-core/src/airflow/cli/commands/team_command.py
index c93013d177a..13702d516c4 100644
--- a/airflow-core/src/airflow/cli/commands/team_command.py
+++ b/airflow-core/src/airflow/cli/commands/team_command.py
@@ -61,7 +61,7 @@ def _extract_team_name(args):
 @providers_configuration_loaded
 @provide_session
 def team_create(args, session=NEW_SESSION):
-    """Create a new team."""
+    """Create a new team. Team names must be 3-50 characters long and contain 
only alphanumeric characters, hyphens, and underscores."""
     team_name = _extract_team_name(args)
 
     # Check if team with this name already exists

Reply via email to