Tutorial on how to query workspace data from a custom report
This project was bootstrapped with leanix-reporting-cli.
npm install -g @leanix/reporting-cli
npm install
in project directory- create a
lxr.json
file in project directory (please see Getting started)
In the project directory, one can run:
npm start
This command will start the local development server. Please make sure you have properly configured lxr.json
first.
It will take the specified API Token from lxr.json
and automatically do a login to the workspace.
npm run build
Builds the report and outputs the build result into dist
folder.
npm run upload
Uploads the report to the workspace configured in lxr.json
.
Please see Uploading to LeanIX workspace.