1.0.4 • Published 3 years ago
inspiry-cli v1.0.4
Installation
npm install inspiry-cli -g
Usage
Open your terminal and type yr -h
, you'll see the help infomation below:
Usage: yr <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
add add a new template
delete delete a template
list List the templateList
init init a project
yr add
This command would help you to add a new template to the templates.json
, which will be used by yr
to init projects.
$ yr add
? 请输入模板名称 admin
? 请输入模板地址 http://gitlab.2dupay.com/shenwansheng/inspiry-vue-template.git
√ Add a template successfully!
The latest templateList is:
┌───────┬────────────────────────────────────────────────────────────────┐
│ name │ url │
├───────┼────────────────────────────────────────────────────────────────┤
│ h5 │ http://gitlab.2dupay.com/shenwansheng/vue-h5-template.git │
├───────┼────────────────────────────────────────────────────────────────┤
│ admin │ http://gitlab.2dupay.com/shenwansheng/inspiry-vue-template.git │
└───────┴────────────────────────────────────────────────────────────────┘
yr delete
To delete a template, you could use this command:
$ yr delete
? 请输入要删除的模板名称 admin
? 请输入要删除的模板名称 admin
√ Deleted successfully!
The latest templateList is:
┌───────┬────────────────────────────────────────────────────────────────┐
│ name │ url │
├───────┼────────────────────────────────────────────────────────────────┤
│ admin │ http://gitlab.2dupay.com/shenwansheng/inspiry-vue-template.git │
└───────┴────────────────────────────────────────────────────────────────┘
yr list
This command will shows you the templates list.
$ yr list
┌───────┬────────────────────────────────────────────────────────────────┐
│ name │ url │
├───────┼────────────────────────────────────────────────────────────────┤
│ admin │ http://gitlab.2dupay.com/shenwansheng/inspiry-vue-template.git │
└───────┴────────────────────────────────────────────────────────────────┘
yr init
You can init a templates use this command
yr init admin project