1.0.11 • Published 2 years ago
17fe-template-cli v1.0.11
Installation
npm install 17fe-template-cli -gUsage
Open your terminal and type 17fe -h , you'll see the help infomation below:
Usage: 17fe <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 project17fe add
This command would help you to add a new template to the templates.json, which will be used by 17fe to init projects.
$ 17fe add
? 請輸入模板名稱 ui2022
? 請輸入模板位址 http://10.77.249.61/frontend/vue3template.git
√ Add a template successfully!
The latest templateList is:
┌───────┬─────────────────────────────────────────────────────┐
│ name  │ url                                                 │
├───────┼─────────────────────────────────────────────────────┤
│ ui2022│ http://10.77.249.61/frontend/vue3template.git       │
├───────┼─────────────────────────────────────────────────────┤
│ ui2021│ http://10.77.249.61/frontend/tailwindCSS.git        │
└───────┴─────────────────────────────────────────────────────┘17fe delete
To delete a template, you could use this command:
$ 17fe delete
? 請輸入要刪除的模板名稱 ui2021
? 請輸入要刪除的模板名稱 ui2021
√ Deleted successfully!
The latest templateList is:
┌───────┬──────────────────────────────────────────────────┐
│ name  │ url                                              │
├───────┼──────────────────────────────────────────────────┤
│ ui2022│ http://10.77.249.61/frontend/vue3template.git    │
└───────┴──────────────────────────────────────────────────┘17fe list
This command will shows you the templates list.
$ 17fe list
┌───────┬─────────────────────────────────────────────────────┐
│ name  │ url                                                 │
├───────┼─────────────────────────────────────────────────────┤
│ ui2022│ https://github.com/Michael-lzg/vue-cli4-vant.git    │
└───────┴─────────────────────────────────────────────────────┘17fe init
You can init a templates use this command
17fe init ui2022 <project-name>