Skip to content

build command

LDO's cli's build command takes ShEx schemas from an --input folder, and converts them into LDO generated code in the --output folder.

If you initialized your project using the init command, a the build command is already added to your package.json. Simply run:

npm run build:ldo

The build command can also be run manually. For example:

ldo build --input ./_shapes --output ./_ldo

This command will create a _shapes and _ldo folder that will store the schemas and generated code for LDO respectively.

Parameters

-i [directory], --input [directory]

Default Value: `./_shapes``

The input directory. This directory should be filled with *.shex files.

-o [directory], --output [directory]

Default Value: `./_ldo``

The output directory.