/unc-cli

🔨A CLI that download gitlab group template to create project | 通过命令行下载gitlab某个组下的模板来创建项目

Primary LanguageJavaScriptMIT LicenseMIT

unc-cli

A CLI that download gitlab group template to create project.

Version MIT License Download

English | 简体中文

Installation

npm i unc-cli -g

Usage

Before using, you must complete the following steps

  • set your gitlab host

    unc config --set gitlab.url <gitlab host>
    # example
    unc config --set gitlab.url https://gitlab.xxxx.com
  • set gitlab groupId (select and download template from this gitlab group

    unc config --set gitlab.groupId <groupId>
  • set gitlab access token (how to create gitlab access token)

    unc config --set gitlab.token <your token>
    

Now you can run this command to create project👇

unc create <project-name>

Run Locally

  • step1, clone the project
git clone https://github.com/taojunnan/unc-cli.git
  • step2, install dependencies
cd unc-cli
npm install
  • step3, [option]change command name

    open package.json, replace commandName and bin.uncto your command name

  • step4, link package

npm link
  • step5, run
unc -V
# or
<your command name> -V

Example

example.gif

License

MIT