Frameworks
Next.js CLI allows you to develop, build, start your application, and more. A React framework for production with built-in optimizations.
npx next [command] [options]devStarts Next.js in development mode with Hot Module Reloading
Type: command
buildCreates an optimized production build of your application
Type: command
startStarts Next.js in production mode
Type: command
infoPrints relevant details about the current system
Type: command
telemetryAllows you to enable or disable Next.js telemetry collection
Type: command
typegenGenerates TypeScript definitions for routes without running a full build
Type: command
upgradeUpgrades your Next.js application to the latest version
Type: command
experimental-analyzeAnalyzes bundle output using Turbopack
Type: command
--help, -hShows all available options
Type: option
--version, -vOutputs the Next.js version number
Type: option
--turbopackForce enable Turbopack (enabled by default)
Type: option
--webpackUse Webpack instead of Turbopack
Type: option
--port, -pSpecify a port number (default: 3000)
Type: option
--hostname, -HSpecify a hostname (default: 0.0.0.0)
Type: option
--experimental-httpsStarts the server with HTTPS
Type: option
--debugEnables verbose build output
Type: option
--profileEnables production profiling for React
Type: option
--no-lintDisables linting during build
Type: option
--verboseShow verbose output during upgrade
Type: option
Start development server
npx next devBuild for production
npx next buildStart production server
npx next startStart dev server on custom port
npx next dev -p 4000Build with debug output
npx next build --debugEnable HTTPS in development
npx next dev --experimental-httpsGenerate TypeScript types
npx next typegenUpgrade to latest version
npx next upgradeAnalyze bundle output
npx next experimental-analyzeGet system information
npx next infoTypeScript & JavaScript (Rust core)
Next.js was created by Guillermo Rauch in 2016 as a React framework that provides a great developer experience with features like server-side rendering, static site generation, and API routes.
The framework has evolved significantly since its initial release, adding features like the App Router, Turbopack bundler, and improved performance optimizations. Next.js is now one of the most popular React frameworks, used by companies like Netflix, TikTok, and Uber.
In 2022, Next.js introduced the App Router as a new way to build applications, replacing the Pages Router. The App Router provides better performance, improved developer experience, and new features like Server Components.
Next.js continues to evolve with regular updates, focusing on performance, developer experience, and modern web standards.
Next.js provides a complete solution for building React applications with built-in optimizations for performance, SEO, and user experience. Key features include:
The framework uses Turbopack (written in Rust) for fast builds and development, providing significantly better performance than traditional bundlers.