Using CLI
Suitable for local testing on your machine.
Prerequisite
npx @sap/csn-interop-renderer -i <inputFilePath> -o <outputFilePath> -r <outputFormat>
CLI options
Name | Value | Description |
---|---|---|
-i | <inputFilePath> | Input file, containing a valid CSN JSON document. |
-o | <outputFilePath> | Output file, where the rendering result should be written to. |
-r | md , html | Input file, containing a valid CSN JSON document. |
Examples
-
Takes a CSN JSON document
inputCSNDocument.json
as input and generates markdownoutput.md
file:npx @sap/csn-interop-renderer -i ./inputCSNDocument.json -o output.md -r md
-
Takes a CSN JSON document
inputCSNDocument.json
as input and generates htmloutput.txt
file:npx @sap/csn-interop-renderer -i ./inputCSNDocument.json -o output.txt -r html
Upgrade to latest CLI version
Get the latest CLI version when you had it previously installed on your machine.
npm upgrade -g @sap/csn-interop-renderer