Log in to SDK

Use the CLI login command to set the API key for accessing deepset Cloud and the default workspace for all operations.

Prerequisites

Generate an API Key to access deepset Cloud and have it at hand.

Log in

  1. Run:
deepset-cloud login
python -m deepset_cloud_sdk.cli login
  1. When prompted, paste your API key.
  2. Type the name of the deepset Cloud workspace you want to set as default for all operations.

This creates an .ENV file with your API key and default workspace. You can now use the command line or scripts to interact with deepset Cloud.

To delete the .ENV file, run:

deepset-cloud logout
python -m deepset_cloud_sdk.cli logout