Repository navigation
Releases
v4.1.0
v4.1.0 is the next minor release.
π Changelog
π Enhancements
- build: render project logs in the clack gutter (#1705)
- dev: respect mouse clicks in panel overlays (#1665)
- dev: http/2 support (#1694)
- dev,info: copy through the terminal without a clipboard tool (#1693)
- module: add
module buildandmodule preparecommands (#1687) - build: render production build output from Nuxt's build hooks (#1662)
- dev: scope error clears to the recovering request (#1673)
π©Ή Fixes
- dev: stop waiting for nuxt
closehooks after the shutdown timeout (#1702) - dev: share one close listener per response + log node warnings as warnings (#1701)
- dev: show what a module printed ahead of its prompt (#1700)
- dev: hide the launcher console window when opening the browser on Windows (#1699)
- dev: keep questions/prompts interactive while the ui starts (#1697)
- dev: wait for the background query to release stdin before prompting (#1698)
- init: skip package rename when workspace depends on it (#1696)
- init: include install step after package manager conflict (#1695)
- dev: improve dx of using error/warning logs (#1692)
- show code on unreported Nuxt diagnostics and skip reported ones (#1690)
- nitro: stop registering deprecated
rollup:beforehook on Nitro v3 (#1683) - nitro: report the Nitro version a project actually runs (#1680)
- build,dev,info: name the server builder instead of assuming Nitro (#1671)
π‘ Chore
- add .output to gitignore (#1675)
β Tests
- allow slow package manager shims on windows (
196e2bb9)
π€ CI
π New Contributors
- sarankumar (@sarankumar1325)
- ProgramRipper (@ProgramRipper)
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Florian Heuberger (@Flo0806)
- sarankumar (@sarankumar1325)
- ProgramRipper (@ProgramRipper)
- SΓ©bastien Chopin (@atinux)
v4.1.0-alpha.0
v4.1.0-alpha.0 is the next minor release.
π Changelog
π Enhancements
- analyze: add
--json, keep each named run and add Nitro v3 support (#1645) - dev: relay warning clears to the error channel (#1642)
- typecheck: report out-of-memory kills + raise heap limit (#1640)
- typecheck: type-check incrementally by default (#1641)
- dev: add
devServer.allowedHosts(#1639) - upgrade: add
v5-nightlyand soft-deprecatev3channels (#1631) - dev: respect
--openwhen dev server is already running (#1629)
π₯ Performance
- typecheck: generate types in a short-lived child process (#1637)
π©Ή Fixes
- dev: don't warn of network exposure for names bound to loopback (#1646)
- dev: don't hint at
--hostwhen bound to a network address (#1656) - dev: keep a string
extendsfrom nuxt.config (#1658) - dev: strip control characters from forwarded report fields (#1660)
π‘ Chore
- lint (
7d4dec65)
π€ CI
- notify nuxt/translations on docs pushes (
52a9abc9)
π New Contributors
- tommie (@tommie)
- Antoine-Tena (@antoine-tena)
- Bart Scholtus (@matsn0w)
β€οΈ Contributors
- tommie (@tommie)
- SΓ©bastien Chopin (@atinux)
- Antoine-Tena (@antoine-tena)
- Bart Scholtus (@matsn0w)
- Daniel Roe (@danielroe)
- Robin (@OrbisK)
- Anthony Fu (@antfu)
v4.0.3
v4.0.3 is the next patch release.
π Changelog
π©Ή Fixes
- dev: keep allowedHosts in dev server hint (
3e9127c3)
β€οΈ Contributors
- Daniel Roe (@danielroe)
v4.0.2
v4.0.2 is the next patch release.
π Changelog
π©Ή Fixes
- upgrade: link changelog for dash-separated nightly versions (
988f146f) - read the package manager version without shell args on windows (#1635)
- analyze,dev: respect
vite.server.allowedHostsin host checks (#1636) - dev: ignore malformed dev server hint (
adc103a9)
β Tests
- read loading page bodies as soon as they arrive (
022dbb3f)
π€ CI
- keep every pending pull preview run (#1622)
- comment nuxt.com preview links on docs pull requests (#1618)
π New Contributors
- Hamed (@hamedniroomand)
- Baptiste Leproux (@larbish)
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Hamed (@hamedniroomand)
- Baptiste Leproux (@larbish)
v4.0.1
v4.0.1 is the next patch release.
π Changelog
π©Ή Fixes
- dev: open
BROWSERwithout a display server (#1609) - dev: record logs printed in the same tick as separate entries (#1606)
- dev: keep log overlay rows within the terminal width (#1605)
- dev: disable dev channels when
BroadcastChannelthrows (#1600)
π Refactors
- add: use package-manager-detector workspace + deno handling (
c1e0e9ee)
β Tests
π New Contributors
- abeer0 (@iiio2)
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Benjamin Canac (@benjamincanac)
- abeer0 (@iiio2)
v4.0.0
v4.0.0 is the next major release.
π Highlights
Nuxt CLI v4 is a performance, feature and DX-focused release.
It ships alongside Nuxt 4.6, and alongside resolving almost all of the open issues, we've focused on the nuxt dev experience: how quickly it starts, the information it shows you, and what happens when something goes wrong.
It's also a lot smaller. π
There's quite a bit to cover (more than 200 commits since v3.37), so here are just some of the things that we're particularly excited about! π
π Better dev-time errors with my-bad
Dev-time errors are now rendered with my-bad, which replaces youch (#1518).
When a page fails to render, you get your own page's error state along with a small overlay in the corner. Expanding it shows the source-mapped code frame in your file, the call stack (with framework frames folded away by default), the Vue component trace, the request and environment, and the server logs that led up to the error.
There's a Copy error button with a few formats, including a prompt you can hand straight to an agent:
The CLI now also hosts a single live error channel, mounted at devServer.errorChannel (default /__nuxt_dev__/error). Because it lives in the CLI rather than inside Nuxt, it survives restarts of the process serving your app, and it can report errors that happen before Nuxt is up at all. So if your nuxt.config has a syntax error, or a module can't be loaded, you get a proper error page in the browser, which reloads by itself once you've fixed it:
Each error is rendered once, rather than at several levels (Vite plugin, Nuxt error handler, h3). The terminal gets the same treatment, with a code frame and folded dependency frames:
[request error] [GET] /broken
β TypeError (500): Cannot read properties of null (reading 'name')
<nuxt-root> βΊ <app> βΊ <NuxtPage> βΊ <RouterView> βΊ <RouteProvider> βΊ <broken>
1 β <script setup lang="ts">
2 β const user = { profile: null as null | { name: string } }
βΊ 3 β const name = user.profile!.name.toUpperCase()
β ^
4 β </script>
at setup app/pages/broken.vue:3:28
β¦ 9 dependency frames
config-error-recovery-syntax-dark.webm
Note
The in-app overlay, source-mapped SSR stack traces and component traces need Nuxt 4.6 (nuxt/nuxt#36258). With an older Nuxt, the CLI still renders errors it sees itself (such as startup and config failures) with my-bad, but other errors will be rendered as before with youch.
The error channel is only served in full to loopback peers. If you expose your dev server to the network, remote peers get a scoped view without request details or error history (#1547, #1552, #1554).
π₯οΈ An interactive terminal UI for nuxt dev
I am very excited about this one. In an interactive terminal, nuxt dev now renders a panel pinned to the bottom of the screen with your URLs, live startup progress, the current status and a row of shortcuts, while logs fold away above it (#1463).
Everything is a single keypress away:
| Key | Action |
|---|---|
r / shift-r |
Restart the dev server (optionally with a cleared cache) |
o |
Open the app in your browser |
y |
Copy the server URL to the clipboard |
i |
Versions, URLs, QR code and session info |
l / e |
Browse the log history, or jump to the last error |
n |
Browse served requests |
p |
Browse pages and server routes |
c |
Clear the console without deleting history |
x |
Delete log and request history |
? |
Show all shortcuts |
q |
Quit |
Every request the dev server forwards is now tagged with an id, so logs and errors are attributed to the request that caused them, and you can drill into a request from the n view to see what it logged (2d9f1a8, #1557, #1558, #1474).
Select a request and press enter to open its timeline: middleware, plugins, hooks, data fetching, rendering and outgoing requests, followed by Vite compilation timings and the request's logs (#1582). The detail available depends on your Nuxt and Nitro versions. Inside a view, y copies the selected row and shift-y copies the filtered contents (#1537).
Screen.Recording.2026-09-27.at.16.58.56.mov
When something inside the dev server needs your input (for example, useScript() offering to install @nuxt/scripts), the panel steps aside and lets you answer it (#1488):
This also adds three primitives for modules that want to play nicely with the new UI: withTerminal() to borrow the terminal, startTask() for a spinner on the status line, and notify() for a notice that lands in the log history. (To use this, make sure your module has @nuxt/kit v4.6 as a dependency...)
Tip
The UI falls back to a plain stream of logs when the output isn't a terminal, in CI, when a debugger is attached, or when the terminal is too small. Pass --no-tui (or set NUXT_TUI=plain for good) if you prefer the classic output.
We've also tried to make the dev server surface more information about what it's doing:
- It gives granular information about what's making a startup slow (if it is!), including the wait between "ready" and the first page (#1478, #1496), and streams the same progress to the loading page in your browser (
81a5de1). - It tells you why it reloaded or restarted, and for a
nuxt.configchange it lists the keys that actually changed (#1402, #1403). Saves that change nothing no longer restart the server at all (#1435). - We've also done the same for
nuxt build, which reports its phases and where the time went (#1490).
β‘οΈ Faster startup, smaller install
As mentioned above, we've spent a lot of time on the size and startup time of the CLI and have cleared away a lot of unnecessary, old and deprecated dependencies.
@nuxt/cli has gone from 70 packages to 31 and from 13.1 MB to 3.5 MB installed, and the global nuxi package from 6.0 MB to 0.8 MB. We've swapped out a number of dependencies for Node built-ins or smaller alternatives (picocolors for node:util styleText, semver for verkit, fuse.js for fuzzysort, magicast for oxc, ofetch for native fetch, source-map-js for Node's SourceMap), stopped bundling jiti, and kept registry lookups and the update check off the startup path (#1379, #1409, #1413, #1416, #1425, #1430, #1443).
| v3.37.0 | v4.0.0 | ||
|---|---|---|---|
@nuxt/cli install size |
13.1 MB | 3.5 MB | -73% |
@nuxt/cli dependencies |
70 | 31 | -56% |
nuxi install size |
6.0 MB | 0.8 MB | -87% |
nuxt --help |
108 ms | 73 ms | -32% |
nuxi --help (global) |
88 ms | 49 ms | -44% |
nuxt dev: first paint |
330 ms | 50 ms | 6.6x faster |
nuxt dev: port bound |
338 ms | 104 ms | 3.2x faster |
nuxt dev: first page served |
3.2 s | 2.6 s | -19% |
nuxt dev: memory at rest (Linux) |
630 MB | 440 MB | -30% |
Note
This was measured on a minimal pnpm create nuxt app with Nuxt 4.5.2, Node 24.15 on arm64 Linux, median of 10 runs.
A few of the changes behind this:
- The dev server binds its port before your config is loaded, so the browser has something to connect to straight away, and the panel is painted before anything else happens (#1555,
88de5da,11226da). - On Linux, we disable mimalloc's eager arena commit (used by Rolldown and oxc), which stops the dev server's memory from tracking arena size rather than live bytes (#1411).
- A hard restart keeps serving on the same port using
SO_REUSEPORTand hands it to the new process, rather than dropping connections while it comes back up (#1404). - We keep a single warm fork ready (configurable with
NUXT_DEV_FORK_POOL_SIZE), and only start warming it once you change a file (1897968,9a10f71).
π€ Friendlier to agents (and to people with too many terminals)
A running dev server now records itself in a lock file in .nuxt/. That means a second nuxt dev for the same project reports the server that is already running rather than racing it for a port, and can take it over when that makes sense (#1414):
- If an agent starts
nuxt devwhile another non-interactive server is running, it takes over (loudly). - If the running server is one you started in a terminal, a non-interactive
nuxt devrefuses and tells the agent where your server is. - Pass
--takeoverto force it.
The lock file also powers two new c...
v4.0.0-alpha.1
v4.0.0-alpha.1 is the next alpha.
π Changelog
π Enhancements
- analyze,build,dev,preview: support builds without a server runtime (#1505)
- dev: narrate the wait between ready and the first page (#1496)
- build: report build phases and where the time went (#1490)
π₯ Performance
- drop unneeded node imports on fast path (
a642f91)
π©Ή Fixes
- report actual server health and error remedies (#1515)
- analyze,build,dev,preview: server build descriptor with nitro fallback (#1509)
- build,dev: return the path the cpu profile was written to (
b5de69a) - add: stop an entry's trailing comment swallowing a new separator (
056579e) - dev: time startup phases + stop hook names leaking into labels (#1495)
- curl: suggest a path every project serves when the URL is missing (
14c16bf) - dev: suggest a route that exists, only where it can be read (
354d42b) - cli: drop clack gutter framing from redirected output (
39420c9) - dev: only draw the startup QR code in a terminal (
3904632)
π‘ Chore
- make nuxt-init spinner frames deterministic (#1497)
β Tests
- add additional tests + harden cli (#1500)
β€οΈ Contributors
- Daniel Roe (@danielroe)
v4.0.0-alpha.0
v4.0.0-alpha.0 is the first alpha release of
@nuxt/cliv4 πTimetable: 24 August
π Highlights
Nuxt CLI v4 is a performance, feature and DX-focused release.
π₯ in the six weeks since v3.37.0 we've merged 102 PRs and closed 93 issues. the CLI is also much slimmer: installed on its own it now pulls 34 packages and 2.3 MB of node_modules, rather than 74 and 9.1 MB.
An interactive dev server
nuxt dev now renders a panel with your server URLs, live startup progress, the current status and single-key shortcuts.
you can check logs, errors, served requests, routes, versions, and more behind keyboard shortcuts, or you can opt-into previous behaviour with --no-tui (or NUXT_TUI=plain)...
there should be a lot more information, such as why nuxt is restarting, and what bits of the startup cycle are taking time...
Talking to a running dev server
we now record dev server sessions in .nuxt/nuxt.lock, which enables a few new features:
nuxt curl sends a request to the dev server running for the project, so you don't need to know which port it ended up on. responses are reindented and highlighted in a terminal:
npx nuxt curl /api/hello -i
npx nuxt curl /api/todos -X POST -d '{"title":"Buy milk"}'nuxt task list and nuxt task run do the same for Nitro tasks, against the server you already have running:
npx nuxt task run db:seed --payload.count=10and a second nuxt dev will tell you that one is already running, and give you the choice to take it over from your current terminal if you want.
Smaller features
nuxt docs "server routes"searches the docs for the Nuxt version the project depends on, and opens the best match.- a mistyped command or flag is matched against the ones that exist and offered as a correction, rather than dumping help.
nuxt addinstalls layers as well as modules,nuxt module searchshows descriptions and highlights matches, and we now support--jsonforinfo,module searchandtask list.- network failures explain themselves and suggest the retry likely to work (including
NODE_EXTRA_CA_CERTSbehind a proxy that re-signs TLS). - pnpm catalogs are understood, so
nuxt upgradewill work better... - .... and lots more
β οΈ Breaking changes
we're also taking the opportunity to adopt the following breaking changes:
- we're dropping support for
@nuxt/bridge(as Nuxt 2 has been EOL for some time now). - we now require Node v22.19+, v24.11+, or v26+
nuxino longer bundles most commands; outside a project it defers to the project's own@nuxt/cli, and projects on Nuxt <3.26 are no longer supported by itnuxt initis gone from@nuxt/cli; scaffolding lives increate-nuxt(npm create nuxt)
π₯ Performance
against v3.37.0:
| v3.37.0 | alpha.0 | delta | |
|---|---|---|---|
nuxt --help |
99ms | 60ms | -40% |
nuxt dev --help |
80ms | 48ms | -40% |
modules loaded for nuxt dev --help |
205 | 80 | -61% |
| direct dependencies | 28 | 21 | -25% |
| installed packages | 74 | 34 | -54% |
node_modules on disk |
9.14MB | 2.32MB | -75% |
| files installed | 1274 | 419 | -67% |
you can track install size and dependency count here.
π§ͺ Trying it out
npm install -D @nuxt/cli@alphawith pnpm you'll need to add an override, so Nuxt's own dependency resolves to the alpha too:
overrides:
'@nuxt/cli': alphacommand docs are now generated from this repo and published at https://nuxt.com/docs/5.x/api/commands/.
π Feedback
it's an alpha and much of the dev server is new, so expect breakage. the most likely candidates are the interactive UI in unusual terminals and multiplexers, restart/takeover behaviour, and Windows.
Tip
if you encounter issues, start by trying --no-tui and NUXT_IGNORE_LOCK=1.
please do open an issue with npx nuxt info output and a reproduction if you can π
... and thank you to everyone in the nuxt community who's made this alpha possible! β€οΈ
π Changelog
π Enhancements
- dev: interactive terminal ui for the dev server (#1463)
- dev: suggest using
nuxt curlwhen running non-interactively (#1464) - dev: stream live startup progress to the loading page and terminal (
81a5de1) - offer to rerun with correct spelling of commands/args (
36119fe) - docs: add
nuxt docscommand (f2dbd8c) - module,task: add
--jsontomodule searchandtask list(da95c8b) - suggest the closest command instead of dumping help (
b841b87) - warn on unknown options and suggest the intended one (
07e7981) - info: add --json output (
82fe2d6) - dev: explain first-run failures before nuxt loads (#1444)
- curl,task: highlight + pretty-print responses (#1432)
- module: show descriptions and highlight matches while searching (
e621b9c) - curl,task: add
nuxt curl,nuxt task listandnuxt task run(#1417) - dev: take over a dev server already running on this project (#1414)
- improve upgrade hints + add init hint/tip (#1406)
- dev: print changed
nuxt.configkeys on a config-triggered reload (#1403) - dev: report why the dev server reloaded or restarted (#1402)
- dev: surface the stackblitz editor url in the dev url block (
62a030f) - dev: hint about --host when bound to loopback in docker or wsl (
29558d5) - add: support adding layers via cli (#1399)
- support pnpm catalogs (#1397)
- build: report total build time (
3d16e4c) - nuxi: defer subcommands to the project's
@nuxt/cli(#1394) - init: opt yarn projects out of plug'n'play (
64b4525) - nudge when a newer nuxt release is available (#1393)
- suggest proxy-aware retry command when network fails (#1387)
- dev: add restart, url, qr and copy shortcuts (
bf72c89) - dev: support opening a custom path or url (
f693d33) - dev: add
--strictPortflag (b6ee3b9) - dev: respect
BROWSERenv when opening browser (c1c6687) - dev: add
qandquitshortcuts to dev server (#1378) - dev: detect portless proxy urls (
a0eace5) - dev: better errors inspired by nitro (#1383)
π₯ Performance
- dev: bind the dev server port before the config is loaded (
88de5da) - keep engine and update checks off the version path (
a3fa129) - dev: stop saves that change nothing from restarting the dev server (#1435)
- module: swap
fzfforfuzzysort(ff0cc23) - dev,module: handle registry trailing slashes internally (
0673103) - dev: use node
createHashfor hashing build manifest (8ff1c67) - dev: use builtin node
SourceMapinstead ofsource-map-js(#1430) - info,upgrade: use
confboxrather thanpnpm-workspace-yaml(#1425) - replace picocolors with
node:utilstyleText (#1416) - keep youch, the registry and the update check off startup (#1413)
- disable mimalloc eager arena commit at cli entry (#1411)
β οΈ nuxi: defer to project cli + drop nuxt <3.26 support (#1410)- nuxi: do not bundle jiti (#1409)
- dev: warm a single fork by default, overridable with NUXT_DEV_FORK_POOL_SIZE (
1897968) - dev: warm the fork pool on first file change instead of on ready (
9a10f71)
π©Ή Fixes
- dev: stop racing the first render (#1475)
- dev: group routes by kind and label method-less handlers (
9d042af) - dev: close the help view with
?as well ash(6f6e530) - abort on ctrl-c at suggestion prompts (
34714dc) - dev: properly attribute logs for nitro v3 (#1474)
- typecheck: document negatable flags (
6890367) - dev: handle nuxt v5 for the new interactive ui (#1473)
- capture: sample fingerprint where output is erased (#1472)
- init: pass
--throug...
v3.37.0
v3.37.0 is the next minor release.
π Changelog
π Enhancements
π€ CI
β€οΈ Contributors
- Oskar Lebuda (@OskarLebuda)
- Daniel Roe (@danielroe)
- Colin McDonnell (@colinhacks)
v3.36.1
v3.36.1 is a hotfix release to address a change in vite v8.1.
π Changelog
π©Ή Fixes
- dev: set hmr server on
server.ws(vite 8.1+) (#1355)
β€οΈ Contributors
- Daniel Roe (@danielroe)



