Next.js: `next init`

Created on 6 Dec 2016  路  5Comments  路  Source: vercel/next.js

We should introduce a command that automatically generates a boilerplate (example site) within the current directory.

Also allows you to specify a path:

next init ../bla/bla

This is how Ember's CLI handles it.

Most helpful comment

It already exists. We have to write a doc.

All 5 comments

It already exists. We have to write a doc.

So, we need to install next globally too. How about move it into another utility like next-init. I mean there's another NPM package for that.

@arunoda I wouldn't recommend that. Ember also has it built into the main CLI.

@leo If you are looking for an example, CRA does the way I suggested.
They have create-react-app and react-scripts.

react-scripts updated very often and create-react-app rarely.

Anyway, document something better than nothing.

Already documented in next -h.

Was this page helpful?
0 / 5 - 0 ratings