1.2.0 • Published 5 years ago
msdc-cli v1.2.0
MSDC CLI
Global (Command: msdc)
React CLI
create-react-app must be installed and executed before using this CLI
Commands: ms-react --help
Express CLI
no prerequisites
Commands: ms-express --help
React CLI
===== React CLI =====
create-react-app must be installed and executed before using this CLI
Command: ms-react --help
Options
-h, --help Display this usage guide.
-s, --structure sub-command to create structure of project.
-m, --model sub-command to manage a model
-v, --verbose debug mode, can be use everywhere [SOON]
Examples
Display help for model sub-command
$ ms-react --model --help
Display help for structure sub-command
$ ms-react --structure --help
===== React Model CLI =====
Generates model (component, container) for React use.
Commands: ms-react --model --help
Options
-h, --help Display this usage guide.
-m, --model Required to use model CLI
-n, --modelName string Default argument: required to generate model
-c, --component Generate a component.
-C, --container Generate a container, linked with a component of same name.
Examples
Create a component and a container
$ ms-react -m Person -c -C
Create a container only
$ ms-react -m Person -C
===== React Structure CLI =====
Generates a structure for a [React - Frontend] development
Commands: ms-react --structure --help
Options
-h, --help Display this usage guide.
-s, --structure Required to use model CLI
-d, --dependencies Install basic dependencies:
react react-dom react-router-dom react-pure-lifecycle react-redux redux
redux-thunk react-scripts prop-types reactstrap bootstrap.
Examples
Generate structure and install dependencies
$ ms-react --structure --dependencies
Express CLI
===== Express CLI =====
Command: ms-express --help
Options
-h, --help Display this usage guide.
-s, --structure sub-command to create structure of project.
-m, --model sub-command to manage a model
-v, --verbose debug mode, can be use everywhere [SOON]
Examples
Display help for model sub-command
$ ms-express --model --help
Display help for structure sub-command
$ ms-express --structure --help
===== Express Model CLI =====
Generates model (model, controller, route) for Express use.
Commands: ms-express --model --help
Options
-h, --help Display this usage guide.
-m, --model Required to use model CLI
-n, --modelName string Default argument: required to generate model
-c, --controller Generate a controller file, linked with a model of same name..
-r, --route Generate a route file, linked with a model of same name.
Examples
Create a component and a container
$ ms-express -m Person -c -r
Create a controller only
$ ms-express -m Person -c
===== Express Structure CLI =====
Generates a structure for a [Express - Frontend] development
Commands: ms-express --structure --help
Options
-h, --help Display this usage guide.
-s, --structure Required to use model CLI
-d, --dependencies Install basic dependencies.
Examples
Generate structure and install dependencies
$ ms-express --structure --dependencies