atarun-cli

1.3.2 • Public • Published

Installation

npm install atarun-cli -g

Usage

Open your terminal and type atarun -h , you'll see the help infomation below:

Usage: atarun <command>

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  add             add a new template
  delete          delete a template
  list            list the templateList
  init            init a project
  help [command]  display help for command

atarun add

This command would help you to add a new template to the templates.json, which will be used by atarun init to init projects.

$ atarun add
? 请选择要添加项目模版的仓库类型 git
? 请输入项目模板名称 hello
? 请输入项目模板地址 http://xxx/xxx.git
? 请输入项目模板描述 desc


✔ 添加一个项目模版成功!

所有的项目模版集合是: 

┌───────┬─────────────────────────────────────────────────────┬───────────────────┬───────────────────┐
│ name  │ downloadUrl                                         │    description    │      repoType     │
├───────┼─────────────────────────────────────────────────────┤───────────────────┤───────────────────┤
│ hello │ http://xxx/xxx.git                                  │        desc       │        git        │
└───────┴─────────────────────────────────────────────────────┴───────────────────┴───────────────────┘

atarun list

This command will shows you the templates list.

$ atarun list
┌───────┬─────────────────────────────────────────────────────┬───────────────────┬───────────────────┐
│ name  │ downloadUrl                                         │    description    │      repoType     │
├───────┼─────────────────────────────────────────────────────┤───────────────────┤───────────────────┤
│ hello │ http://xxx/xxx.git                                  │        desc       │        git        │
└───────┴─────────────────────────────────────────────────────┴───────────────────┴───────────────────┘

atarun delete

To delete a template, you could use this command:

$ atarun delete
? 请输入要删除的项目模板名称 hello


✔ 删除项目模版成功!

atarun init

You can init a templates use this command

atarun init

...

Readme

Keywords

none

Package Sidebar

Install

npm i atarun-cli

Weekly Downloads

2

Version

1.3.2

License

ISC

Unpacked Size

21 kB

Total Files

9

Last publish

Collaborators

  • atarun