# @qcloud-apaas/component-tools-cli

> 腾讯云千帆ApaaS组件脚手架Cli

Latest version **2.0.6** (published 2022-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @qcloud-apaas/component-tools-cli
pnpm add @qcloud-apaas/component-tools-cli
yarn add @qcloud-apaas/component-tools-cli
bun add @qcloud-apaas/component-tools-cli
```

Provides the command `qcomponent`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2022-01-19 |
| First published | 2021-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 8 |
| Unpacked size | 33.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | webyom, jasincere |
| Keywords | oclif, qcloud-apaas |

## Links

- npm: https://www.npmjs.com/package/@qcloud-apaas/component-tools-cli
- Repository: https://github.com/qcloud-apaas/component-tools-cli
- Issues: https://github.com/qcloud-apaas/component-tools-cli/issues
- npm.io page: https://npm.io/package/@qcloud-apaas/component-tools-cli

## Dependencies (8)

- [ora](https://npm.io/package/ora.md) ^5.4.1
- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^3
- [yeoman-environment](https://npm.io/package/yeoman-environment.md) ^3.4.1
- [@qcloud-apaas/component-tools](https://npm.io/package/@qcloud-apaas/component-tools.md) ^2.0.6
- [@qcloud-apaas/generator-component](https://npm.io/package/@qcloud-apaas/generator-component.md) ^2.0.6

## 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

- 2.0.6 (latest) — 2022-01-19
- 1.2.11-alpha.0 (next) — 2021-09-07
- 2.0.5 — 2022-01-19
- 2.0.4 — 2021-12-23
- 2.0.3 — 2021-11-17
- 2.0.2 — 2021-09-14
- 2.0.1 — 2021-09-08
- 2.0.0 — 2021-09-07
- 1.2.10 — 2021-08-27
- 1.2.9 — 2021-08-23
- 1.2.8 — 2021-08-23
- 1.2.7 — 2021-08-12
- 1.2.6 — 2021-08-12
- 1.2.5 — 2021-08-12
- 1.2.4 — 2021-08-12
- … 19 more at https://npm.io/package/@qcloud-apaas/component-tools-cli/versions

## README

@qcloud-apaas/component-tools-cli
=================================

腾讯云千帆ApaaS组件脚手架Cli

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@qcloud-apaas/component-tools-cli.svg)](https://npmjs.org/package/@qcloud-apaas/component-tools-cli)
[![Downloads/week](https://img.shields.io/npm/dw/@qcloud-apaas/component-tools-cli.svg)](https://npmjs.org/package/@qcloud-apaas/component-tools-cli)
[![License](https://img.shields.io/npm/l/@qcloud-apaas/component-tools-cli.svg)](https://github.com/firesnow3676/component-tools-cli/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @qcloud-apaas/component-tools-cli
$ qcomponent COMMAND
running command...
$ qcomponent (-v|--version|version)
@qcloud-apaas/component-tools-cli/2.0.6 darwin-x64 node-v14.16.1
$ qcomponent --help [COMMAND]
USAGE
  $ qcomponent COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`qcomponent build`](#qcomponent-build)
* [`qcomponent config [CONFIGKEY] [CONFIGVALUE]`](#qcomponent-config-configkey-configvalue)
* [`qcomponent create [KEY]`](#qcomponent-create-key)
* [`qcomponent help [COMMAND]`](#qcomponent-help-command)
* [`qcomponent mkcert`](#qcomponent-mkcert)
* [`qcomponent publish`](#qcomponent-publish)
* [`qcomponent release [RELEASETYPE]`](#qcomponent-release-releasetype)
* [`qcomponent release-version [RELEASETYPE]`](#qcomponent-release-version-releasetype)
* [`qcomponent start`](#qcomponent-start)
* [`qcomponent tpk`](#qcomponent-tpk)

## `qcomponent build`

构建组件

```
USAGE
  $ qcomponent build

OPTIONS
  -c, --config=config  自定义webpack配置
  -h, --help           查看帮助
  -m, --min            是否压缩包体积
  -t, --tpk            是否生成tpk包

EXAMPLES
  $ qcomponent build
  $ qcomponent build -c ./webpack.config.js
  $ qcomponent build --tpk --min
  $ qcomponent build -t -m
```

_See code: [src/commands/build.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/build.ts)_

## `qcomponent config [CONFIGKEY] [CONFIGVALUE]`

修改环境配置，可设置secretId和secretKey

```
USAGE
  $ qcomponent config [CONFIGKEY] [CONFIGVALUE]

OPTIONS
  -h, --help  查看帮助

EXAMPLES
  $ qcomponent config secretId <secretId>
  $ qcomponent config secretKey <secretKey>
```

_See code: [src/commands/config.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/config.ts)_

## `qcomponent create [KEY]`

生成代码

```
USAGE
  $ qcomponent create [KEY]

ARGUMENTS
  KEY  由组件的标识转化为kebab-case。运行之后，会在当前路径创建名为组件名的文件名。

OPTIONS
  -h, --help  查看帮助

EXAMPLE
  $ qcomponent create <key>
```

_See code: [src/commands/create.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/create.ts)_

## `qcomponent help [COMMAND]`

display help for qcomponent

```
USAGE
  $ qcomponent help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_

## `qcomponent mkcert`

生成ssl根证书，信任证书可通过浏览器HTTPS安全性校验

```
USAGE
  $ qcomponent mkcert

OPTIONS
  -h, --help  查看帮助

EXAMPLE
  $ qcomponent mkcert
```

_See code: [src/commands/mkcert.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/mkcert.ts)_

## `qcomponent publish`

仅发布组件

```
USAGE
  $ qcomponent publish

OPTIONS
  -h, --help  查看帮助

EXAMPLE
  $ qcomponent publish
```

_See code: [src/commands/publish.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/publish.ts)_

## `qcomponent release [RELEASETYPE]`

一键发布组件，构建、设置版本、发布。release = build + release-version + publish

```
USAGE
  $ qcomponent release [RELEASETYPE]

ARGUMENTS
  RELEASETYPE  发布版本类型 patch|minor|major, 参考semver版本规范

OPTIONS
  -h, --help  查看帮助

EXAMPLE
  $ qcomponent release
```

_See code: [src/commands/release.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/release.ts)_

## `qcomponent release-version [RELEASETYPE]`

设置版本

```
USAGE
  $ qcomponent release-version [RELEASETYPE]

ARGUMENTS
  RELEASETYPE  发布版本类型 patch|minor|major, 参考semver版本规范

OPTIONS
  -h, --help  查看帮助

EXAMPLE
  $ qcomponent release-version <releaseType>
```

_See code: [src/commands/release-version.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/release-version.ts)_

## `qcomponent start`

运行组件，启动开发

```
USAGE
  $ qcomponent start

OPTIONS
  -c, --config=config  webpack配置
  -h, --help           查看帮助
  -p, --port=port      运行端口

EXAMPLES
  $ qcomponent start
  $ qcomponent start -p 8080
  $ qcomponent start -c ./webpack.config.js
```

_See code: [src/commands/start.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/start.ts)_

## `qcomponent tpk`

打包组件，同时生成tpk格式组件包。等同于qcomponent build --tpk

```
USAGE
  $ qcomponent tpk

OPTIONS
  -c, --config=config  自定义webpack配置
  -h, --help           查看帮助
  -m, --min            是否压缩包体积

EXAMPLE
  $ qcomponent tpk
```

_See code: [src/commands/tpk.ts](https://github.com/qcloud-apaas/component-tools-cli/blob/v2.0.6/src/commands/tpk.ts)_
<!-- commandsstop -->

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