From e92b405780854a52a967b221f873d6da4789c995 Mon Sep 17 00:00:00 2001 From: Heitor Carvalho Date: Tue, 20 May 2025 11:45:11 -0300 Subject: [PATCH] Change login/signup method name --- src/crewai/cli/authentication/main.py | 7 ++----- src/crewai/cli/cli.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/crewai/cli/authentication/main.py b/src/crewai/cli/authentication/main.py index 5a335e1f2..2fd9c632b 100644 --- a/src/crewai/cli/authentication/main.py +++ b/src/crewai/cli/authentication/main.py @@ -20,11 +20,8 @@ class AuthenticationCommand: def __init__(self): self.token_manager = TokenManager() - def signup(self) -> None: - """Sign up to CrewAI+""" - console.print("Signing Up to CrewAI+ \n", style="bold blue") - device_code_data = self._get_device_code() - self._display_auth_instructions(device_code_data) + def login(self) -> None: + """Login or Sign Up to CrewAI Enterprise""" return self._poll_for_token(device_code_data) diff --git a/src/crewai/cli/cli.py b/src/crewai/cli/cli.py index 20e007944..21b67fc71 100644 --- a/src/crewai/cli/cli.py +++ b/src/crewai/cli/cli.py @@ -215,7 +215,7 @@ def update(): @crewai.command() def login(): """Sign Up/Login to CrewAI Enterprise.""" - AuthenticationCommand().signup() + AuthenticationCommand().login() # DEPLOY CREWAI+ COMMANDS