Install or Update the SAP Datasphere Command Line Interface

The SAP Datasphere command line interface (datasphere) is a Node.js package that you download using the Node Package Manager (npm).

Context

datasphere is listed on https://www.npmjs.com/Information published on non-SAP site at https://www.npmjs.com/package/@sap/datasphere-cliInformation published on non-SAP site.

Prerequisites

You have installed the following on your system:

  • Node.js version >= 20 and <=24

  • npm version >= 8 and <=11

npm is distributed with Node.js. Therefore, when you download Node.js, npm is automatically installed. To download the Node.js installer, see nodejs.orgInformation published on non-SAP site.

You can test if Node.js and npm are installed on your system by executing the following commands:
  • node -v

  • npm -v

If Node.js and npm are already installed, then their current versions will appear. If you receive an error, you have not installed them yet.

Procedure

  1. Run the following command:
    npm install -g @sap/datasphere-cli
  2. Test if the installation was successful by running the following command:
    datasphere --version
  3. Log into the Command Line Interface via an OAuth Client.