Nuxt/docs/3.api/4.commands/upgrade.md
2024-12-18 10:29:56 +00:00

1.1 KiB

title description links
nuxi upgrade The upgrade command upgrades Nuxt to the latest version.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/cli/blob/main/src/commands/upgrade.ts xs
npx nuxi upgrade [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [-f, --force] [-ch, --channel=<stable|nightly>]

The upgrade command upgrades Nuxt to the latest version.

Arguments

Argument Description
ROOTDIR="." Specifies the working directory (default: .)

Options

Option Default Description
--cwd=<directory> Specify the working directory, this takes precedence over ROOTDIR (default: .)
--logLevel=<silent|info|verbose> Specify build-time log level
-f, --force Force upgrade to recreate lockfile and node_modules
-ch, --channel=<stable|nightly> stable Specify a channel to install from (default: stable)