# infra-cli

[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

This is a scaffolding tool inside the infra department

Provide function
  Create project
    1. Custom build project
    2. Select the built-in remote template to generate the project
    3. Pull the third-party remote template generation project
    4. the customized template generates the cache configuration

## Table of Contents
- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## Background

With the expansion of the department’s business, there are more and more projects, and the configuration and structure of the project are similar. At this time, the infra department needs to reduce repetitive work and unify project constraints and structure, so this tool was born.

## Install

```
$ npm install --global infra-cli

or

$ yarn global add infra-cli
```

## Usage

1. Custom build project
```
  infra create <name>
```
2. Select the built-in remote template to generate the project
```
  infra create  <name> -t [name]
```
3. Select the built-in remote template to generate the backend project
```
  infra create  <name> -be [name]
```
4. Pull the third-party remote template generation project
```
  infra create <name> -c <git url>
```

## Contributing

See [the contributing file](contributing.md)!

PRs accepted.

Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © 2021 xiang.hong
