mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
docs(cli): specify commands that interact with node-env (#3593)
This commit is contained in:
parent
d5b406215a
commit
a59bf5233d
@ -35,6 +35,8 @@ Option | Default | Description
|
|||||||
`--ssl-cert` |`null` | Specify a certificate for https.
|
`--ssl-cert` |`null` | Specify a certificate for https.
|
||||||
`--ssl-key` |`null` | Specify the key for the https certificate.
|
`--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
|
## Build
|
||||||
|
|
||||||
```{bash}
|
```{bash}
|
||||||
@ -47,6 +49,8 @@ Option | Default | Description
|
|||||||
-------------------------|-----------------|------------------
|
-------------------------|-----------------|------------------
|
||||||
`rootDir` | `.` | The root directory of the application to bundle.
|
`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
|
## Preview
|
||||||
|
|
||||||
```{bash}
|
```{bash}
|
||||||
@ -59,6 +63,8 @@ Option | Default | Description
|
|||||||
-------------------------|-----------------|------------------
|
-------------------------|-----------------|------------------
|
||||||
`rootDir` | `.` | The root directory of the application to preview.
|
`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
|
## Info
|
||||||
|
|
||||||
```{bash}
|
```{bash}
|
||||||
@ -83,13 +89,15 @@ Option | Default | Description
|
|||||||
-------------------------|-----------------|------------------
|
-------------------------|-----------------|------------------
|
||||||
`rootDir` | `.` | The directory of the target application.
|
`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
|
## Upgrade
|
||||||
|
|
||||||
```{bash}
|
```{bash}
|
||||||
npx nuxi upgrade [--force|-f]
|
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
|
Option | Default | Description
|
||||||
-------------------------|-----------------|------------------
|
-------------------------|-----------------|------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user