Skip to content

Releases

v4.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:29
Immutable release. Only release title and notes can be modified.
23e26b6

v4.1.0 is the next minor release.

πŸ‘‰ Changelog

compare changes

πŸš€ 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 build and module prepare commands (#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 close hooks 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:before hook 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

  • update agentscan config (f44a5dc7)
  • replace agentscan action with the github app (a0e126ba)

πŸŽ‰ New Contributors

❀️ Contributors

v4.1.0-alpha.0

v4.1.0-alpha.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:17
Immutable release. Only release title and notes can be modified.
b1f1956

v4.1.0-alpha.0 is the next minor release.

πŸ‘‰ Changelog

compare changes

πŸš€ 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-nightly and soft-deprecate v3 channels (#1631)
  • dev: respect --open when 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 --host when bound to a network address (#1656)
  • dev: keep a string extends from nuxt.config (#1658)
  • dev: strip control characters from forwarded report fields (#1660)

🏑 Chore

πŸ€– CI

  • notify nuxt/translations on docs pushes (52a9abc9)

πŸŽ‰ New Contributors

❀️ Contributors

v4.0.3

Choose a tag to compare

@github-actions github-actions released this 03 Nov 00:01
Immutable release. Only release title and notes can be modified.
73ac72e

v4.0.3 is the next patch release.

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • dev: keep allowedHosts in dev server hint (3e9127c3)

❀️ Contributors

v4.0.2

Choose a tag to compare

@github-actions github-actions released this 02 Nov 23:18
Immutable release. Only release title and notes can be modified.
0a72949

v4.0.2 is the next patch release.

πŸ‘‰ Changelog

compare changes

🩹 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.allowedHosts in 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

❀️ Contributors

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 15:31
Immutable release. Only release title and notes can be modified.
82318b2

v4.0.1 is the next patch release.

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • dev: open BROWSER without 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 BroadcastChannel throws (#1600)

πŸ’… Refactors

  • add: use package-manager-detector workspace + deno handling (c1e0e9ee)

βœ… Tests

  • update snapshots for upm (#1597)
  • skip update check while recording (eec52f07)

πŸŽ‰ New Contributors

❀️ Contributors

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 18:22
Immutable release. Only release title and notes can be modified.
074ab4d

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).

A Vue error rendered by my-bad, showing the original source frame in app/pages/broken.vue

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.

The collapsed my-bad overlay in the corner of a Nuxt error page

There's a Copy error button with a few formats, including a prompt you can hand straight to an agent:

The my-bad copy menu: copy as Markdown, copy prompt for an agent, copy structured JSON

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:

my-bad showing a build error for a missing @nuxt/image module

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).

nuxt dev with the interactive terminal UI

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):

nuxt dev prompting to install a module from the interactive UI

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.config change 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).

nuxt dev reporting which nuxt.config keys changed on restart

⚑️ 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%
Nuxt CLI startup and install-size benchmark results

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_REUSEPORT and 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 dev while 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 dev refuses and tells the agent where your server is.
  • Pass --takeover to force it.

The lock file also powers two new c...

Read more

v4.0.0-alpha.1

v4.0.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Sep 22:15
Immutable release. Only release title and notes can be modified.
97d8eee

v4.0.0-alpha.1 is the next alpha.

πŸ‘‰ Changelog

compare changes

πŸš€ 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

v4.0.0-alpha.0

v4.0.0-alpha.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Aug 20:40
Immutable release. Only release title and notes can be modified.
d6b96fd

v4.0.0-alpha.0 is the first alpha release of @nuxt/cli v4 πŸŽ‰

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.

nuxt-dev

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-curl

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=10
nuxt-task-list

and 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 add installs layers as well as modules, nuxt module search shows descriptions and highlights matches, and we now support --json for info, module search and task list.
  • network failures explain themselves and suggest the retry likely to work (including NODE_EXTRA_CA_CERTS behind a proxy that re-signs TLS).
  • pnpm catalogs are understood, so nuxt upgrade will 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+
  • nuxi no 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 it
  • nuxt init is gone from @nuxt/cli; scaffolding lives in create-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.

SCR-20260824-izym

πŸ§ͺ Trying it out

npm install -D @nuxt/cli@alpha

with pnpm you'll need to add an override, so Nuxt's own dependency resolves to the alpha too:

overrides:
  '@nuxt/cli': alpha

command 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

compare changes

πŸš€ Enhancements

  • dev: interactive terminal ui for the dev server (#1463)
  • dev: suggest using nuxt curl when 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 docs command (f2dbd8c)
  • module,task: add --json to module search and task 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 list and nuxt 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.config keys 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 --strictPort flag (b6ee3b9)
  • dev: respect BROWSER env when opening browser (c1c6687)
  • dev: add q and quit shortcuts 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 fzf for fuzzysort (ff0cc23)
  • dev,module: handle registry trailing slashes internally (0673103)
  • dev: use node createHash for hashing build manifest (8ff1c67)
  • dev: use builtin node SourceMap instead of source-map-js (#1430)
  • info,upgrade: use confbox rather than pnpm-workspace-yaml (#1425)
  • replace picocolors with node:util styleText (#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 as h (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...
Read more

v3.37.0

Choose a tag to compare

@github-actions github-actions released this 14 Jul 10:45
Immutable release. Only release title and notes can be modified.
169edb5

v3.37.0 is the next minor release.

πŸ‘‰ Changelog

compare changes

πŸš€ Enhancements

  • typecheck: add Golar support (#1362)
  • init: recognize nub package manager (#1360)

πŸ€– CI

  • migrate agentscan-action to v2 (7fc085b)
  • add agent-scan workflow to flag bot-authored PRs (18b4417)

❀️ Contributors

v3.36.1

Choose a tag to compare

@github-actions github-actions released this 26 Jun 12:24
Immutable release. Only release title and notes can be modified.
49dd7f7

v3.36.1 is a hotfix release to address a change in vite v8.1.

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • dev: set hmr server on server.ws (vite 8.1+) (#1355)

❀️ Contributors