Change login/signup method name

This commit is contained in:
Heitor Carvalho
2025-05-20 11:45:11 -03:00
parent 058aefd313
commit e92b405780
2 changed files with 3 additions and 6 deletions

View File

@@ -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)

View File

@@ -215,7 +215,7 @@ def update():
@crewai.command()
def login():
"""Sign Up/Login to CrewAI Enterprise."""
AuthenticationCommand().signup()
AuthenticationCommand().login()
# DEPLOY CREWAI+ COMMANDS