Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.45 KB

README.md

File metadata and controls

54 lines (41 loc) · 1.45 KB


Cubos
Cubos CLI

Development tool for Cubos.

Cubos CLI

Dependencies

A project based on the api-typescript-sdkgen-typeorm

Installation

  1. Install with npm
    • $ npm i -D cubos-cli

How To Use

  1. Create a controller
    • $ npx cubos-cli -c ted
  2. Create a controller with tests
    • $ npx cubos-cli -c ted -t
  3. Create a controller with model and tests
    • $ npx cubos-cli -c ted -m cpf:string value:number -t
  4. 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
  5. 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
  6. Helper
    • $ npx cubos-cli -h

After running what should i do?

$ npm run sdkgen

Interesting Links

sdkgen