You can create your custom CLI using this program structure.
This program tested ok by using this version :
- npm 6.7.0
- node v11.14.0
- Install in your local
npm install -g
- Modify constant.js (if any)
- Then you can now use
my
command in your terminal. - Try execute
my -h
for available commands.
- Follow this structure :
- components
- module_name_1
- module_name_1.js
- module_name_2
- module_name_2.js
- module_name_1
- The module_name_1.js structure must follow base.ftl
or you can just run my add-component <component_name>