@sisense/sdk-cli
TypeScript icon, indicating that this package has built-in type declarations

1.34.0 • Public • Published

This library, which is a part of Sisense Compose SDK, provides a set of command line utilities. One of which is to generate TypeScript representation of a Sisense data model.

Usage

Run the following command to create a my-data-source.ts file that contains a TypeScript representation of your data model. Substitute <username>, <instance url>, <data source name> with the values for your instance.

npx sdk-cli get-data-model --username "<username>" --output my-data-source.ts --dataSource "<data source name>" --url <instance url>

You will be prompted for the password.

The resulting file is created in the current directory.

Instead of --username "<username>", you can also use --token <token> to authenticate with an API token. Substitute <token>, <instance url>, <data source name> with the values for your instance.

npx sdk-cli get-data-model --token <token> --output my-data-source.ts --dataSource "<data source name>" --url <instance url>

Or use --wat <wat> to authenticate with a Web Access Token (WAT). Substitute <token>, <instance url>, <data source name> with the values for your instance.

npx sdk-cli get-data-model --wat <wat> --output my-data-source.ts --dataSource "<data source name>" --url <instance url>

Readme

Keywords

Package Sidebar

Install

npm i @sisense/sdk-cli

Weekly Downloads

643

Version

1.34.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

34.6 kB

Total Files

21

Last publish

Collaborators

  • moti.sisense
  • tuan.pham
  • compose-sdk-eng