# next-init

Latest version **0.7.3** (published 2017-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-init
pnpm add next-init
yarn add next-init
bun add next-init
```

Provides the commands `next-dev`, `next-init`, `next-build`, `next-start`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.3 |
| Published | 2017-11-16 |
| First published | 2016-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 18 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jimmy Moon |
| Maintainers | ragingwind |
| Keywords | next, init, next-init, next.js |

## Links

- npm: https://www.npmjs.com/package/next-init
- Repository: https://github.com/ragingwind/next-init
- Homepage: https://github.com/ragingwind/next-init#readme
- Issues: https://github.com/ragingwind/next-init/issues
- npm.io page: https://npm.io/package/next-init

## Dependencies (18)

- [mri](https://npm.io/package/mri.md) ^1.1.0
- [ora](https://npm.io/package/ora.md) ^1.3.0
- [execa](https://npm.io/package/execa.md) ^0.7.0
- [globby](https://npm.io/package/globby.md) ^6.1.0
- [superb](https://npm.io/package/superb.md) ^1.3.0
- [figures](https://npm.io/package/figures.md) ^2.0.0
- [p-queue](https://npm.io/package/p-queue.md) ^1.1.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^4.0.1
- [inquirer](https://npm.io/package/inquirer.md) ^3.2.1
- [p-filter](https://npm.io/package/p-filter.md) ^1.0.0
- [read-pkg](https://npm.io/package/read-pkg.md) ^2.0.0
- [username](https://npm.io/package/username.md) ^3.0.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^5.1.0
- [find-cache-dir](https://npm.io/package/find-cache-dir.md) ^1.0.0
- [github-username](https://npm.io/package/github-username.md) ^4.1.0
- [lodash.template](https://npm.io/package/lodash.template.md) ^4.4.0
- [cache-github-repo](https://npm.io/package/cache-github-repo.md) ^0.3.0
- [inquirer-autocomplete-prompt](https://npm.io/package/inquirer-autocomplete-prompt.md) ^0.11.0

## Recent versions

- 0.7.3 (latest) — 2017-11-16
- 0.3.0-beta.1 (beta) — 2017-08-17
- 0.7.2 — 2017-11-16
- 0.7.1 — 2017-11-15
- 0.6.0 — 2017-10-09
- 0.5.0 — 2017-09-30
- 0.4.0 — 2017-09-29
- 0.3.0 — 2017-08-24
- 0.2.0 — 2017-08-17
- 0.2.0-beta.9 — 2017-08-16
- 0.2.0-beta.8 — 2017-08-16
- 0.2.0-beta.7 — 2017-08-11
- 0.2.0-beta.6 — 2017-08-11
- 0.2.0-beta.5 — 2017-08-11
- 0.2.0-beta.3 — 2017-08-11
- … 6 more at https://npm.io/package/next-init/versions

## README

<img width="200" src="https://user-images.githubusercontent.com/124117/32878591-e6995fa2-caa6-11e7-9f4b-ab7d1ac0b465.png">

> CLI for Next.js apps scaffolding from whatever

## Install

```sh
$ npm install -g next-init
```

## Getting Started

```sh
# init with default tempalte
$ next-init ./my-next-app

# install dependencies
$ cd ./my-next-app
$ npm install

# start next app in dev mode. equivalent to use `npm run dev`
$ next-dev

# start the next app in production. equivalent to use `npm run build && npm start`
$ next-build && next-start
```

## More Usage

```sh
next-init --help
```

## Examples

```sh
# default template
$ next-init
$ next-init ./my-next-app

# with interactive mode to update template values
$ next-init -i

# default template with @latest stable version
$ next-init @latest
$ next-init @latest ./my-next-app

# default template with @canary version
$ next-init @canary
$ next-init @canary ./my-next-app

# community template on github, inspired from `vue init`
$ next-init username/username-next-app
$ next-init username/someone-next-app ./my-next-app

# official examples to current or target path
$ next-init next.js/examples/
$ next-init next.js/examples/ ./my-next-app
$ next-init next.js/examples/with-glamorous ./my-next-app
```

## Alias

next-init supports alias of next commands. those of registered global scope commands will execute next bin in current path after discoverying in local path of `node_modules`

```sh
# equivalent command of `next dev`
next-dev

# equivalent command of `next start`
next-start

# equivalent command of `next build`
next-build
```

## License

MIT © [Jimmy Moon](https://github.com/ragingwind)

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