You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cli/overview.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,21 @@ Nest CLI requires a Node.js binary built with [internationalization support](htt
8
8
9
9
```bash
10
10
node -p process.versions.icu
11
-
```bash
11
+
```
12
12
13
13
If the command prints `undefined`, your Node.js binary has no internationalization support.
14
14
15
15
#### Installation
16
16
17
17
**Note**: In this guide we describe using [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to install packages, including the Nest CLI. Other package managers may be used at your discretion. With npm, you have several options available for managing how your OS command line resolves the location of the `nest` CLI binary file. Here, we describe installing the `nest` binary globally using the `-g` option. This provides a measure of convenience, and is the approach we assume throughout the documentation. Note that installing **any** `npm` package globally leaves the responsibility of ensuring they're running the correct version up to the user. It also means that if you have different projects, each will run the **same** version of the CLI. A reasonable alternative is to use the [npx](https://github.com/npm/cli/blob/latest/docs/lib/content/commands/npx.md) program, built into the `npm` cli (or similar features with other package managers) to ensure that you run a **managed version** of the Nest CLI. We recommend you consult the [npx documentation](https://github.com/npm/cli/blob/latest/docs/lib/content/commands/npx.md) and/or your DevOps support staff for more information.
18
18
19
-
20
-
21
19
Install the CLI globally using the `npm install -g` command (see the **Note** above for details about global installs).
22
20
23
21
```bash
24
22
$ npm install -g @nestjs/cli
25
23
```
26
24
27
-
> info **Hint** Alternatively, you can use this command `npx @nestjs/cli@latest` without installing the cli globally.
25
+
> info **Hint** Alternatively, you can use this command `npx @nestjs/cli@latest` without installing the cli globally.
28
26
29
27
#### Basic workflow
30
28
@@ -100,11 +98,11 @@ Run `nest <command> --help` for any of the following commands to see command-spe
100
98
101
99
See [usage](/cli/usages) for detailed descriptions for each command.
0 commit comments