1.0.1 • Published 2 years ago
super-che-cli v1.0.1
安装
npm install super-che-cli-cli -g
本地调试
npm link 卸载 npm unlink super-che-cli-cli
命令
super-che-cli -h
查看帮助
Usage: super-che-cli <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
add 添加模板
delete 删除模板
list 可用模板
init 初始化项目
super-che-cli add
添加模板
此命令是在本地模板中添加你想要的模板
$ super-che-cli add
? 请输入模板名称 admin
? 请输入模板地址 https://github.com/xxxx/xxxxxx.git
√ Add a template successfully!
The latest templateList is:
┌───────┬─────────────────────────────────────────────────────┐
│ name │ url │
├───────┼─────────────────────────────────────────────────────┤
│ app │ https://github.com/xxxxxxx/xxxxxxxx.git │
├───────┼─────────────────────────────────────────────────────┤
│ admin │ https://github.com/xxxxxx/xxxxxxxx.git │
└───────┴─────────────────────────────────────────────────────┘
super-che-cli delete
从模板中删除模板
$ super-che-cli delete
? 请输入要删除的模板名称 admin
√ Deleted successfully!
The latest templateList is:
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/xxxx/xxxxxxx.git │
└──────┴──────────────────────────────────────────────────┘
super-che-cli list
查看当前脚手架可用模板
$ super-che-cli list
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/xxxxxxx/xxxxxxx.git │
└──────┴──────────────────────────────────────────────────┘
super-che-cli init
template-name 初始化项目
super-che-cli init app projectName
发布
npm login npm publish