0.0.5 • Published 6 years ago

esen-cli v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

esen-cli

A light tool to generate projects in an easy way.

Installation

npm install esen-cli -g

# Usage
Open your terminal and type `esen` or `esen -h` , you'll see the help infomation below:

Usage: esen

Commands:

add|a      Add a new template
list|l     List all the templates
init|i     Generate a new project
delete|d   Delete a template

Options:

-h, --help     output usage information
-V, --version  output the version number
> Note that if you are using `MacOS`, `sudo` was required while using commands `add` and `delete`.

# Commands

### list | l
It shows you the templates list.

$ esen list

┌────────────────────┬────────────────┬────────┐ │ Template Name │ Owner/Name │ Branch │ ├────────────────────┼────────────────┼────────┤ │ my-first-template │ esen/esen │ app │ ├────────────────────┼────────────────┼────────┤ │ my-second-template │ esen/esen │ master │ └────────────────────┴────────────────┴────────┘

### init | i
After adding new templates, you could use this command to generate your own project by choosing template.

$ esen init

? 模板名称: my-first-template ? 项目名称: my-project ? 项目位置? ../ ⠹ Downloading template...

新项目初始化成功!

####如果安装遇到问题 npm权限问题(https://docs.npmjs.com/getting-started/fixing-npm-permissions)

License

MIT.