Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taojunnan/unc-cli
🔨A CLI that download gitlab group template to create project | 通过命令行下载gitlab某个组下的模板来创建项目
https://github.com/taojunnan/unc-cli
cli download gitlab
Last synced: 24 days ago
JSON representation
🔨A CLI that download gitlab group template to create project | 通过命令行下载gitlab某个组下的模板来创建项目
- Host: GitHub
- URL: https://github.com/taojunnan/unc-cli
- Owner: taojunnan
- License: mit
- Created: 2022-01-04T05:33:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T09:45:14.000Z (almost 3 years ago)
- Last Synced: 2024-04-26T03:01:04.886Z (7 months ago)
- Topics: cli, download, gitlab
- Language: JavaScript
- Homepage:
- Size: 122 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unc-cli
A CLI that download gitlab group template to create project.
[![Version][version-badge]][package] [![MIT License][license-badge]][license] [![Download][download-badge]][package]
English | [简体中文](./README.zh-CN.md)
## Installation
```bash
npm i unc-cli -g
```## Usage
### Before using, you must complete the following steps
+ set your gitlab host
```bash
unc config --set gitlab.url
# example
unc config --set gitlab.url https://gitlab.xxxx.com
```
+ set [gitlab groupId](https://docs.gitlab.com/ee/user/group/) (select and download template from this gitlab group
```bash
unc config --set gitlab.groupId
```
+ set gitlab access token ([how to create gitlab access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token))```
unc config --set gitlab.token
```### Now you can run this command to create project👇
```bash
unc create
```## Run Locally
- step1, clone the project
```bash
git clone https://github.com/taojunnan/unc-cli.git
```- step2, install dependencies
```bash
cd unc-cli
npm install
```- step3, [option]change command name
open `package.json`, replace `commandName` and `bin.unc`to your command name
- step4, [link package](https://docs.npmjs.com/cli/v6/commands/npm-link)
```bash
npm link
```- step5, run
```bash
unc -V
# or
-V
```## Example
![example.gif](./public/example.gif)## License
[MIT](./LICENSE)
[version-badge]: https://img.shields.io/npm/v/unc-cli?style=flat-square
[package]: https://www.npmjs.com/package/unc-cli
[license-badge]: https://img.shields.io/npm/l/unc-cli?style=flat-square
[license]: https://opensource.org/licenses/MIT
[download-badge]: https://img.shields.io/npm/dm/unc-cli?style=flat-square