MCPcopy
hub / github.com/crewAIInc/crewAI / AuthenticationCommand

Class AuthenticationCommand

lib/cli/src/crewai_cli/authentication/main.py:21–60  ·  view source on GitHub ↗

CLI-side login that also signs the user into the tool repository.

Source from the content-addressed store, hash-verified

19
20
21class AuthenticationCommand(_BaseAuthenticationCommand):
22 """CLI-side login that also signs the user into the tool repository."""
23
24 def _post_login(self) -> None:
25 self._login_to_tool_repository()
26
27 def _login_to_tool_repository(self) -> None:
28 from crewai_cli.tools.main import ToolCommand
29
30 try:
31 console.print(
32 "Now logging you in to the Tool Repository... ",
33 style="bold blue",
34 end="",
35 )
36
37 ToolCommand().login()
38
39 console.print(
40 "Success!\n",
41 style="bold green",
42 )
43
44 settings = Settings()
45
46 console.print(
47 f"You are now authenticated to the tool repository for organization [bold cyan]'{settings.org_name if settings.org_name else settings.org_uuid}'[/bold cyan]",
48 style="green",
49 )
50 except (Exception, SystemExit):
51 console.print(
52 "\n[bold yellow]Warning:[/bold yellow] Authentication with the Tool Repository failed.",
53 style="yellow",
54 )
55 console.print(
56 "Other features will work normally, but you may experience limitations "
57 "with downloading and publishing tools."
58 "\nRun [bold]crewai login[/bold] to try logging in again.\n",
59 style="yellow",
60 )

Callers 3

_chain_deployFunction · 0.90
loginFunction · 0.90
setup_methodMethod · 0.90

Calls

no outgoing calls

Tested by 1

setup_methodMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…