diff --git a/src/bentoml_cli/cloud.py b/src/bentoml_cli/cloud.py index be0cab7ee91..5860191a788 100644 --- a/src/bentoml_cli/cloud.py +++ b/src/bentoml_cli/cloud.py @@ -58,8 +58,8 @@ def login(shared_options: SharedOptions, endpoint: str, api_token: str) -> None: raise CLIException("current organization is not found") ctx = CloudClientContext( - name=shared_options.context - if shared_options.context is not None + name=shared_options.cloud_context + if shared_options.cloud_context is not None else default_context_name, endpoint=endpoint, api_token=api_token,