LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

next

Next.js command-line interface

TLDR

Create a new Next.js app (uses create-next-app)
$ npx create-next-app@latest [app-name]
copy
Start development server
$ next dev
copy
Build for production
$ next build
copy
Start production server
$ next start
copy
Run linter
$ next lint
copy
Print environment info for bug reports
$ next info
copy
Enable or disable telemetry
$ next telemetry --disable
copy

SYNOPSIS

next [command] [options]

DESCRIPTION

next is the Next.js CLI for developing, building, and serving React applications. It provides file-based routing, server-side rendering, static generation, and API routes out of the box.Running next with no command is an alias for next dev. Configuration lives in next.config.js (or .mjs/.ts). Starting with Next 13 the default output directory is .next.

PARAMETERS

dev [directory]

Start development server with Hot Module Reloading.
build [directory]
Create an optimized production build.
start [directory]
Start the production server (requires build first).
lint
Run ESLint on the project.
info
Print system, binary, and package versions (for bug reports).
telemetry --enable | --disable
Enable or disable anonymous telemetry.
-p, --port port
Port to listen on (default: 3000). Applies to dev and start.
-H, --hostname host
Hostname to bind to (default: 0.0.0.0).
--turbopack
Force enable Turbopack (default in recent versions).
--webpack
Use Webpack instead of Turbopack.
--experimental-https
Serve dev over HTTPS using a self-signed certificate.
-h, --help
Display help information.
-v, --version
Display Next.js version.

INSTALL

sudo apk add mmh
copy
nix profile install nixpkgs#mmh
copy

CAVEATS

Requires Node.js. The standalone next export command was removed in Next.js 14 in favor of `output: 'export'` in next.config.js. Linting as part of next build is being phased out starting in Next.js 15.5.

HISTORY

Next.js was created by Vercel (then ZEIT) and released in 2016 as a React framework for production applications. Later versions introduced App Router, React Server Components, and Turbopack.

SEE ALSO

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid