2022-10-06 09:15:30 +00:00
|
|
|
---
|
|
|
|
title: "nuxi upgrade"
|
2024-06-30 10:11:16 +00:00
|
|
|
description: The upgrade command upgrades Nuxt to the latest version.
|
2023-10-18 10:59:43 +00:00
|
|
|
links:
|
|
|
|
- label: Source
|
|
|
|
icon: i-simple-icons-github
|
|
|
|
to: https://github.com/nuxt/cli/blob/main/src/commands/upgrade.ts
|
|
|
|
size: xs
|
2022-10-06 09:15:30 +00:00
|
|
|
---
|
|
|
|
|
2024-12-18 10:29:56 +00:00
|
|
|
<!--upgrade-cmd-->
|
2023-10-18 10:59:43 +00:00
|
|
|
```bash [Terminal]
|
2024-12-18 10:29:56 +00:00
|
|
|
npx nuxi upgrade [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [-f, --force] [-ch, --channel=<stable|nightly>]
|
2022-04-06 05:56:08 +00:00
|
|
|
```
|
2024-12-18 10:29:56 +00:00
|
|
|
<!--/upgrade-cmd-->
|
2022-04-06 05:56:08 +00:00
|
|
|
|
2024-06-30 10:11:16 +00:00
|
|
|
The `upgrade` command upgrades Nuxt to the latest version.
|
2022-04-06 05:56:08 +00:00
|
|
|
|
2024-12-18 10:29:56 +00:00
|
|
|
## Arguments
|
|
|
|
|
|
|
|
<!--upgrade-args-->
|
|
|
|
Argument | Description
|
|
|
|
--- | ---
|
|
|
|
`ROOTDIR="."` | Specifies the working directory (default: `.`)
|
|
|
|
<!--/upgrade-args-->
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
<!--upgrade-opts-->
|
|
|
|
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)
|
|
|
|
<!--/upgrade-opts-->
|