Cubos CLI
Development tool for Cubos.
Installation
- Install with
npm
$ npm i -D cubos-cli
How To Use
- 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
After running what should i do?
$ npm run sdkgen