Set Up the Command Line interface
deepset SDK comes with a command-line interface (CLI) that's fast and easy to use. 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 connect to a deepset workspace.
-
Run the following command to ensure you have the latest version of the SDK installed:
deepset-cloud --version
Log 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 --help
Log Out
To delete the .ENV file with your credentials, run:
deepset-cloud logout
Check the SDK Version
To verify if you have the latest SDK version installed, run:
deepset-cloud --version
Was this page helpful?