Skip to Content
Feb 13 at 02:32 PM

How to provide "--definitions" as option to @sap/dwc-cli for all definitions?

165 Views Last edit Feb 13 at 02:33 PM 2 rev

Hi all,

i am trying to read the detailed space definitions from SAP DWC using the @sap/dwc-cli as Node.js module dependency.

Therefore i use the CLI parameter "--definitions" or "-D" with value "" (empty string) in order to get all definitions. But unfortunately this gets ignored.If i use this "--no-space-definition": "" it works like expected.

What do i have to pass for "-D" to get all definitions?

Coding looks like this, but there is nothing incorrect. It is only about the passing of the "--definitions" param.

const options = {"--host": "MYHOST"}

await commands["spaces read"]({...options,...{"--definitions", ""}})