ly-arco-cli
v1.0.0
Published
arco design cli by ly
Readme
Installation
npm install ly-arco-cli -gUsage
Open your terminal and type ly -h , you'll see the help infomation below:
Usage: cm <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 projectly add
This command would help you to add a new template to the templates.json, which will be used by ly to init projects.
$ ly add
? 请输入模板名称 admin
? 请输入模板地址 https://github.com/xxxxxx
√ Add a template successfully!
The latest templateList is:
┌───────┬─────────────────────────────────────────────────────┐
│ name │ url │
├───────┼─────────────────────────────────────────────────────┤
│ app │ https://github.com/xxxxx │
├───────┼─────────────────────────────────────────────────────┤
│ admin │ https://github.com/xxxxx │
└───────┴─────────────────────────────────────────────────────┘ly delete
To delete a template, you could use this command:
$ ly delete
? 请输入要删除的模板名称 admin
? 请输入要删除的模板名称 admin
√ Deleted successfully!
The latest templateList is:
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/xxxx │
└──────┴──────────────────────────────────────────────────┘ly list
This command will shows you the templates list.
$ ly list
┌──────┬──────────────────────────────────────────────────┐
│ name │ url │
├──────┼──────────────────────────────────────────────────┤
│ app │ https://github.com/xxxx │
└──────┴──────────────────────────────────────────────────┘ly init
You can init a templates use this command
ly init app project