# cr-react-cli

> Create react files with a single command

Latest version **1.6.1** (published 2022-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install cr-react-cli
pnpm add cr-react-cli
yarn add cr-react-cli
bun add cr-react-cli
```

Provides the commands `rct`, `react`, `react-cli`, `cr-react-cli`.

## 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.6.1 |
| Published | 2022-01-31 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 138.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Saša Đurić |
| Maintainers | sasa_djuric |
| Keywords | react, cli, command line, react native, hook, redux, story-book, preact, typescript |

## Links

- npm: https://www.npmjs.com/package/cr-react-cli
- Repository: https://github.com/sasa-djuric/react-cli
- Homepage: https://github.com/sasa-djuric/react-cli#readme
- Issues: https://github.com/sasa-djuric/react-cli/issues
- npm.io page: https://npm.io/package/cr-react-cli

## Dependencies (14)

- [case](https://npm.io/package/case.md) ^1.6.3
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [clear](https://npm.io/package/clear.md) ^0.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [pacote](https://npm.io/package/pacote.md) ^12.0.2
- [inquirer](https://npm.io/package/inquirer.md) ^7.3.3
- [ast-types](https://npm.io/package/ast-types.md) ^0.14.2
- [commander](https://npm.io/package/commander.md) ^6.1.0
- [indent.js](https://npm.io/package/indent.js.md) ^0.3.5
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.16.7
- [jscodeshift](https://npm.io/package/jscodeshift.md) ^0.13.0
- [@babel/plugin-syntax-jsx](https://npm.io/package/@babel/plugin-syntax-jsx.md) ^7.16.7
- [@babel/plugin-syntax-typescript](https://npm.io/package/@babel/plugin-syntax-typescript.md) ^7.16.7
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.16.7

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.6.1 (latest) — 2022-01-31
- 1.6.0 — 2022-01-23
- 1.5.2 — 2022-01-12
- 1.5.1 — 2022-01-09
- 1.5.0 — 2022-01-08
- 1.4.0 — 2022-01-05
- 1.3.3 — 2022-01-01
- 1.3.2 — 2021-11-22
- 1.3.1 — 2021-11-22
- 1.3.0 — 2021-11-22
- 1.2.0 — 2021-11-20
- 1.1.0 — 2021-11-19
- 1.0.6 — 2021-10-02
- 1.0.5 — 2021-09-13
- 1.0.4 — 2021-05-11
- … 4 more at https://npm.io/package/cr-react-cli/versions

## README

![React Cli Header](./assets/logo.svg)

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![License](https://img.shields.io/npm/l/express.svg)](https://github.com/sasa-djuric/react-cli/blob/master/LICENSE)

A command-line interface tool for generating react files.

### Visit official documentation website [reactcli.org](https://reactcli.org)

## Motivation

The motivation for creating this project was to reduce the time spent on creating files and boilerplate code and be more productive.

## Getting started

### 1. Install the React CLI

Install React CLI from your command line.

```bash
npm install -g cr-react-cli
```

### 2. Initialize configuration

To setup React CLI by your preferences, run the init command to generate a [config file](https://reactcli.org/docs/config/overview).

```bash
npx react-cli init
```

After the init command is executed, you will be asked questions about your project. After you answer all questions, in case that you choose the project scope for the config file, the react.config.json file will be generated at the root of your project.

### 3. Use it

React CLI can be used with several aliases like: cr-react-cli, react-cli, react, rct.
Run [component](https://reactcli.org/docs/commands/component), [context](https://reactcli.org/docs/commands/context) or [hook](https://reactcli.org/docs/commands/hook) commands to generate boilerplate files.

```bash
npx react component menu
npx react context menu
npx react hook useMenu
```

## License

[MIT](https://github.com/sasa-djuric/react-cli/blob/master/LICENSE)

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