# vue-generate-cli

> A cli tool for auto-generating vue template component

Latest version **1.2.0** (published 2018-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-generate-cli
pnpm add vue-generate-cli
yarn add vue-generate-cli
bun add vue-generate-cli
```

Provides the command `vue-g`.

## 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.0 |
| Published | 2018-05-30 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 3 |
| Unpacked size | 23.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | bingrui_yuan0721@163.com |
| Maintainers | xiaobaijun |
| Keywords | vue, cli, generate, vue-generate-cli |

## Links

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

## Dependencies (3)

- [ora](https://npm.io/package/ora.md) ^2.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.0
- [commander](https://npm.io/package/commander.md) ^2.15.1

## 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.0 (latest) — 2018-05-30
- 1.1.1 — 2018-04-20
- 1.1.0 — 2018-04-20
- 1.0.0 — 2018-04-19

## README

# vue-generate-cli

A cli tool for auto-generating vue template component.

### Installation

Prerequisites: [Node.js](https://nodejs.org/en/) (>=4.x, 6.x preferred), npm version 3+ and [Git](https://git-scm.com/).

``` bash
$ npm install -g vue-generate-cli
or
$ yarn global add vue-generate-cli
```

### Usage

``` bash
// default generate a new file in './src' directory or sub-directory
// add -R [rootDir] option to generate new file in custome root directory
$ vue-g g <filename> || vue-g g <filename> -R doc
or
// default generate a new file in components directory
// add -r option to generate new file in current root directory
$ vue-g g <filename> || vue-g g <filename> -r
or
// generate a new file in custom directory
$ vue-g g <dirname> <filename>
or
// generate more new files in custom directory
$ vue-g g <dirname> <filename01> <filename02> <filename03> <filename(2N+1)>
or
// generate more new files in custom path
$ vue-g g path <filename01> <filename02> <filename03> <filename(2N+1)>
or
// generate a new files in custom path with -P and -C option
$ vue-g g path <filename01> <filename02> <filename03> -P -C
// -P filename is PascalCase format
// -C generate CSS file
```

Example:

``` bash
$ vue-g g my-component
or
$ vue-g g libs my-component
or
$ vue-g g libs my-component01 my-component02 my-component03
or
$ vue-g g ./components/libs my-component01 my-component02 my-component03
```

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