Development tool for Cubos.
A project based on the api-typescript-sdkgen-typeorm
- Install with
npm
$ npm i -D cubos-cli
- Create a controller
$ npx cubos-cli -c ted
- Create a controller with tests
$ npx cubos-cli -c ted -t
- Create a controller with model and tests
$ npx cubos-cli -c ted -m cpf:string value:number -t
- Create a controller with functions, model and tests
$ npx cubos-cli -c ted -f getHistoryTed#cpf:string saveHistoryTed#cpf:string,value:money -t -m cpf:string value:number
- Create a controller with functions, model, tests and repository
$ npx cubos-cli -c ted -f getHistoryTed#cpf:string saveHistoryTed#cpf:string,value:money -t -m cpf:string value:number -r
- Helper
$ npx cubos-cli -h
$ npm run sdkgen