# tive-cli

> 基于node和npm的命令行工具集

Latest version **1.2.2** (published 2021-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install tive-cli
pnpm add tive-cli
yarn add tive-cli
bun add tive-cli
```

Provides the commands `tive`, `tive-git`, `tive-create`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2021-06-16 |
| First published | 2021-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | tive |
| Maintainers | zmer |
| Keywords | tive-cli, tive, cli, git, push, merge, vue, vite, vant, scaffold, template, demo |

## Links

- npm: https://www.npmjs.com/package/tive-cli
- Repository: https://github.com/tive6/tive-cli
- Homepage: https://github.com/tive6/tive-cli#readme
- Issues: https://github.com/tive6/tive-cli/issues
- npm.io page: https://npm.io/package/tive-cli

## Dependencies (12)

- [ora](https://npm.io/package/ora.md) ^5.3.0
- [copy](https://npm.io/package/copy.md) ^0.3.2
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [pacote](https://npm.io/package/pacote.md) ^11.2.7
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [semver](https://npm.io/package/semver.md) ^7.3.5
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [spinner](https://npm.io/package/spinner.md) ^0.3.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [commander](https://npm.io/package/commander.md) ^7.1.0
- [download-git-repo](https://npm.io/package/download-git-repo.md) ^3.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2021-06-16
- 1.2.1 — 2021-05-18
- 1.2.0 — 2021-05-18
- 1.1.14 — 2021-05-06
- 1.1.13 — 2021-04-22
- 1.1.12 — 2021-04-22
- 1.1.11 — 2021-04-22
- 1.1.1 — 2021-04-22
- 1.1.0 — 2021-04-22
- 1.0.9 — 2021-04-22
- 1.0.8 — 2021-03-26
- 1.0.7 — 2021-03-26
- 1.0.6 — 2021-03-26
- 1.0.5 — 2021-03-26
- 1.0.4 — 2021-03-04
- … 4 more at https://npm.io/package/tive-cli/versions

## README

# tive-cli
>基于`node和npm`的命令行工具集
>>1、基于`vue`脚手架的npm模板工具
> 
>>2、基于`shelljs`的`Git`自动化工具


### 安装
tive-cli 依赖 [Node.js](https://nodejs.org/en/) (>=7.x)：

```
$ npm install tive-cli -g
```

### 用法
```
$ tive create <project-name>
$ tive git <options>
```

示例：

```
$ tive create my-project                # 当前目录生成

$ tive create .                         # 当前目录生成

$ tive git -b master -m "push"          # push代码到远程
$ tive git -b dev -t test -m "push"     # 开发分支合并到测试分支并提交 
$ tive git -c ./tive.git.config.js      # 顺序执行自定义组合git命令
```

### 基本命令

* `tive` or `tive -h` --- 查看 tive 的帮助信息
* `tive create` or `tive create -h` --- 查看 tive create 的帮助信息
* `tive create your-project-name` --- 用指定的脚手架创建你的项目
* `tive git` or `tive git -h` --- 查看 tive git 的帮助信息
* `tive git -b [current branch] -m [commit description]`
* `tive git -b [current branch] -t [merged branch] -m [commit description]`
* `tive git -c [git config]`

#### git配置文件

*提示*：git命令顺序执行

目录：和`package.json`同级

示例：`tive.git.config.js`

```javascript
module.exports = {
    shell: [
        'git status',
        'git add .',
        'git commit -m "commit description"',
        'git push origin master',
    ]
}
```

---
_Source: https://npm.io/package/tive-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
