Set Up the SDK CLI
Before you start working with the SDK through command-line, set the API key for accessing deepset AI Platform and the default workspace for all operations.
Prerequisites
- Install the SDK.
- Generate an API key to access deepset AI Platform, and have it at hand.
- You can run the following command to ensure you have the latest version of the SDK installed:
deepset-cloud --versionLog In
- Run the following command:
deepset-cloud login - Choose the deepset environment:
eu(default): For deployments in Europe, sets the environment tohttps://api.cloud.deepset.ai/.us: For deployments in the US, sets the environment to:https://api.us.deepset.ai/.custom: For on-premise deployments, you must provide the API URL.
- When prompted, paste your API key.
- Type the name of the deepset workspace you want to set as default for all operations.
Running the login command creates an .ENV file ~/.deepset-cloud/.env containing your API key and default workspace. The SDK uses this file as the default configuration for all subsequent CLI commands.
Getting Help
Use --help to see available commands:
deepset-cloud --helpLog Out
To delete the .ENV file with your credentials, run:
deepset-cloud logoutCheck the SDK Version
To verify if you have the latest SDK version installed, run:
deepset-cloud --versionUpdated about 2 months ago
Related Links