LinuxCommandLibrary

next

next

TLDR

Create Next.js app

$ next create [app-name]
copy
Start development server
$ next dev
copy
Build for production
$ next build
copy
Start production server
$ next start
copy
Export static site
$ next export
copy
Run linter
$ next lint
copy
Show info
$ next info
copy

SYNOPSIS

next [command] [options]

DESCRIPTION

next is the Next.js CLI. It develops and builds React applications.
The tool provides server-side rendering. Supports static generation and API routes.

PARAMETERS

COMMAND

Next.js command.
dev
Start development server.
build
Build application.
start
Start production server.
export
Export to static HTML.
lint
Run ESLint.
--help
Display help information.

CAVEATS

Node.js required. React-based. Configuration in next.config.js.

HISTORY

Next.js was created by Vercel in 2016 as a React framework for production applications.

SEE ALSO

npm(1), vercel(1), node(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community