You can use the dcupl CLI to create new projects based on different boilerplates and perform various tasks around them like data modelling and project configuration.
Make sure you have an up to date version of Node and NPM.
npm i -g @dcupl/cli
Create a new dcupl workspace on your local machine.
# you can choose on of our tutorials or a blank starter project
Serves your local dcupl webserver. The default port is 8083.
dcupl serve --port 3000
Uploads your local dcupl workspace folder to your connected Console project. You can access it as the draft version or the version
name you specified. Make sure you set your
# --name: set a name for your new uploaded version
Downloads the current Console project workspace to local machine. Make sure you set your
# --name: to specify which version to pull
Copies your already uploaded workspace from one version to the other.
dcupl files:copy --from draft --to backup_xyz
Lists all your uploaded workspace versions.
Generates different types of files and data including:
|Model||Generates a Model Definition and adds it to your loader configuration|
|Transformer||Generates a Transformer Function and adds it to your loader configuration|
|Operator||Generates an Operator Function and adds it to your loader configuration|
|Typescript types||Generates Typescript types from all of your Models Defintions|
|JSON Schema||Generates a JSON Schema file from all of your Models Defintions|
|Initial Test Setup||Creates your initial Test Setup|
|Custom Test File||Generates a Test file you can use to write custom test cases|
|Test Config||Generates a Test configuration|
# dcupl generate model
# dcupl generate transformer