SAP Knowledge Base Article - Public

3617569 - Issues when logging to Datasphere with Command Line Interface (CLI) via OAuth Client

Symptom

While attempting login with CLI to datasphere via OAuth client you face errors like the message below:

error: unknown command "&1"

Environment

SAP Datasphere

Reproducing the Issue

Having configured access to datasphere via OAuth Client, 

Attempt to use $ datasphere login or other datasphere commands and face the message: "error: unknown command"

Cause

Code error. Older, or corrupted versions of program supporting this connection and CLI can cause the commands to be unrecognizable.

Resolution

Update NPM, Node and Datasphere client versions to more recent and stable version. At least with versions described below and above.

Datasphere Client: 2025.6.0
Node.js: 21.7.3
NPM: 10.5.0

See Also

SAP Community - FAQ & Troubleshooting Guide for @sap/datasphere-cli
SAP Help - Log into the Command Line Interface via an OAuth Client

Keywords

Datasphere, Node, NPM, OAuth , KBA , DS-API-CLI , SAP Datasphere Command-Line Interface , Problem

Product

SAP Datasphere all versions