# @bm-cli/shell

> bm-cli工具脚本

Latest version **0.0.4** (published 2022-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @bm-cli/shell
pnpm add @bm-cli/shell
yarn add @bm-cli/shell
bun add @bm-cli/shell
```

Provides the command `bm-cli-shell`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-01-28 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bluemoon_china, kableshow |

## Links

- npm: https://www.npmjs.com/package/@bm-cli/shell
- npm.io page: https://npm.io/package/@bm-cli/shell

## Dependencies (3)

- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [commander](https://npm.io/package/commander.md) ^6.1.0
- [@bm-cli/utils](https://npm.io/package/@bm-cli/utils.md) 0.0.5

## Recent versions

- 0.0.4 (latest) — 2022-01-28
- 0.0.3 — 2021-01-19
- 0.0.2 — 2020-09-18
- 0.0.1 — 2020-09-18

## README

# bm-cli工具脚本库

一些项目中常用到的工具脚本。

## How to use

1.项目中按照工具脚本库

```shell
npm i @bm-cli/shell --save-dev
```

2. **package.json** 中设置对应脚本指令（下面以 **mergeTo** 指令为例）

```json
{
  "scripts": {
    "mtt": "bm-cli-shell mergeTo"
  }
}
```

## 指令集

* ``bm-cli-shell mergeTo``

用于快速将开发分支合并到测试分支，并推送到远程，最终自动切换回开发分支。测试分支默认设置为 **test** 。如为其他特殊分支，则可在 **package.json** 中添加如下设置：

```json
{
  "__bmCli": {
    "cli-shell": {
      "mergeTo": {
        "testBranch": "特殊分支名称"
      }
    }
  }
}
```

* ``bm-cli-shell jenkinsBuild``

用于本地调用远程jenkins部署（测试环境使用）。需要在项目的 **package.json** 中配置jenkins的相关信息：

```json
{
  "__bmCli": {
    "cli-shell": {
      "jenkinsBuild": {
        "projectUrl": "项目的jenkins地址",
        "auth": "${jenkins的账号}:${jenkins的密码}"
      }
    }
  }
}
```

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