A CLI that download gitlab group template to create project.
English | 简体中文
npm i unc-cli -g
-
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>
unc create <project-name>
- 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
, replacecommandName
andbin.unc
to your command name -
step4, link package
npm link
- step5, run
unc -V
# or
<your command name> -V