docs(cli): specify commands that interact with node-env (#3593)

This commit is contained in:
Clément Ollivier 2022-03-11 08:57:59 +01:00 committed by GitHub
parent d5b406215a
commit a59bf5233d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,8 @@ Option | Default | Description
`--ssl-cert` |`null` | Specify a certificate for https.
`--ssl-key` |`null` | Specify the key for the https certificate.
This command sets `process.env.NODE_ENV` to `development`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
## Build
```{bash}
@ -47,6 +49,8 @@ Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The root directory of the application to bundle.
This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
## Preview
```{bash}
@ -59,6 +63,8 @@ Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The root directory of the application to preview.
This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
## Info
```{bash}
@ -83,13 +89,15 @@ Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The directory of the target application.
This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
## Upgrade
```{bash}
npx nuxi upgrade [--force|-f]
```
The `upgrade` upgrades Nuxt 3 to the lastest version.
The `upgrade` command upgrades Nuxt 3 to the latest version.
Option | Default | Description
-------------------------|-----------------|------------------