# cna-cli

> Command line tool to create Node apps with a lot of different addons.

Latest version **1.5.3** (published 2021-06-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cna-cli
pnpm add cna-cli
yarn add cna-cli
bun add cna-cli
```

Provides the commands `cna`, `create-node-app`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.5.3 |
| Published | 2021-06-17 |
| First published | 2021-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 40.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ulises-jeremias |
| Keywords | code generator |

## Links

- npm: https://www.npmjs.com/package/cna-cli
- Repository: https://github.com/Create-Node-App/create-node-app
- Homepage: https://github.com/Create-Node-App/create-node-app#readme
- Issues: https://github.com/Create-Node-App/create-node-app/issues
- npm.io page: https://npm.io/package/cna-cli

## Dependencies (13)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [debug](https://npm.io/package/debug.md) ^4.2.0
- [yargs](https://npm.io/package/yargs.md) ^17.0.1
- [semver](https://npm.io/package/semver.md) ^5.6.0
- [envinfo](https://npm.io/package/envinfo.md) ^7.7.4
- [prompts](https://npm.io/package/prompts.md) ^2.4.1
- [download](https://npm.io/package/download.md) ^8.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [readdirp](https://npm.io/package/readdirp.md) ^3.4.0
- [commander](https://npm.io/package/commander.md) ^7.0.0
- [underscore](https://npm.io/package/underscore.md) ^1.10.2
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^6.0.5
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2

## Recent versions

- 1.5.3 (latest) — 2021-06-17
- 1.5.2 — 2021-06-17
- 1.5.1 — 2021-06-17
- 1.5.0 — 2021-06-16
- 1.4.0 — 2021-06-16
- 1.3.5 — 2021-05-30
- 1.3.4 — 2021-05-28
- 1.3.3 — 2021-05-27
- 1.3.2 — 2021-05-27
- 1.3.1 — 2021-05-24
- 1.3.0 — 2021-05-24
- 1.2.6 — 2021-05-23
- 1.2.5 — 2021-05-23
- 1.2.4 — 2021-05-22
- 1.2.3 — 2021-05-22
- … 10 more at https://npm.io/package/cna-cli/versions

## README

# Create Node App

[![Build Status](https://github.com/Create-Node-App/create-node-app/workflows/Build/badge.svg)](https://github.com/Create-Node-App/create-node-app/commits/main)
[![npm](https://img.shields.io/npm/v/cna-cli.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/cna-cli)
[![npm](https://img.shields.io/npm/dm/cna-cli.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/cna-cli)

This starter kit is designed to get you up and running with a bunch of awesome front-end technologies.

The primary goal of this project is to provide a stable foundation upon which to build modern web appliications. Its purpose is not to dictate your project structure or to demonstrate a complete real-world application, but to provide a set of tools intended to make front-end development robust and easy.

- [Creating an app](#creating-an-app) - Create a _Node_ app.

## Quickstart

```sh
$ npx cna-cli my-app # or specify flag `-i` to use interactive menu
$ cd my-app
$ npm start
```

the generated project will vary in the presence of the following flags:

| Flag                    | What is it for?                                        |
| ----------------------- | ------------------------------------------------------ |
| `-i, --interactive`     | use interactive mode to bootstrap your app             |
| `--verbose`             | print additional logs.                                 |
| `--info`                | print environment debug info.                          |
| `--nodeps`              | will no install dependencies on the generated project. |
| `--use-npm`             | will use npm as command.                               |
| `--template <template>` | specify template to use for initial setup              |
| `--inplace`             | apply setup to an existing project.                    |
| `-a <alias>`            | will setup webpack alias. `app` by default.            |

_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

## Creating an app

**You’ll need to have Node 12.14.0 or later on your local development machine** (but it’s not required on the server). You can use [fnm](https://github.com/Schniz/fnm) to easily switch Node versions between different projects.

To create a new app, you may choose one of the following methods:

### npx

```sh
$ npx cna-cli my-app
```

_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

It will create a directory called `my-app` inside the current folder.

## Contributors

<a href="https://github.com/Create-Node-App/create-node-app/contributors">
  <img src="https://contrib.rocks/image?repo=Create-Node-App/create-node-app"/>
</a>

Made with [contributors-img](https://contrib.rocks).

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