1.0.2 • Published 2 years ago
mai-cli v1.0.2
English | 简体中文
feature
- Easy to use
- Support custom template addition and deletion
QuickStart
Install
$ npm i mai-cli -g # install cli
$ omi init my-app # init project, you can also exec 'omi init' in an empty folder
$ cd my-app # please ignore this command if you executed 'omi init' in an empty folder
$ mai init [templateName] [yourProjectName]
Install description:
The default scaffolding template name is vue-admin
mai init vue-admin yourProjectName
New template usage
mai add
# Select template and template address (github address)
-Note: The template address is the git repository name. The master branch is pulled by default.
If you want to specify a branch, please use owner / name # my-branch
Remove template usage
mai delete
# 选择模板
See all template usage
mai list
Initialize project scaffolding usage
mai init 或者 mai init [templateName] [yourProjectName]
Contribution
- maimai-sweet