Skip to content

Commit 8c23f87

Browse files
docs: fix code snippet
1 parent ae1cc17 commit 8c23f87

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

content/cli/overview.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,21 @@ Nest CLI requires a Node.js binary built with [internationalization support](htt
88

99
```bash
1010
node -p process.versions.icu
11-
```bash
11+
```
1212

1313
If the command prints `undefined`, your Node.js binary has no internationalization support.
1414

1515
#### Installation
1616

1717
**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.
1818

19-
20-
2119
Install the CLI globally using the `npm install -g` command (see the **Note** above for details about global installs).
2220

2321
```bash
2422
$ npm install -g @nestjs/cli
2523
```
2624

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.
2826
2927
#### Basic workflow
3028

@@ -100,11 +98,11 @@ Run `nest <command> --help` for any of the following commands to see command-spe
10098

10199
See [usage](/cli/usages) for detailed descriptions for each command.
102100

103-
| Command | Alias | Description |
104-
| ---------- | ----- | ----------------------------------------------------------------------------------------------------- |
105-
| `new` | `n` | Scaffolds a new _standard mode_ application with all boilerplate files needed to run. |
106-
| `generate` | `g` | Generates and/or modifies files based on a schematic. |
107-
| `build` | | Compiles an application or workspace into an output folder. |
108-
| `start` | | Compiles and runs an application (or default project in a workspace). |
109-
| `add` | | Imports a library that has been packaged as a **nest library**, running its install schematic. |
110-
| `info` | `i` | Displays information about installed nest packages and other helpful system info. |
101+
| Command | Alias | Description |
102+
| ---------- | ----- | ---------------------------------------------------------------------------------------------- |
103+
| `new` | `n` | Scaffolds a new _standard mode_ application with all boilerplate files needed to run. |
104+
| `generate` | `g` | Generates and/or modifies files based on a schematic. |
105+
| `build` | | Compiles an application or workspace into an output folder. |
106+
| `start` | | Compiles and runs an application (or default project in a workspace). |
107+
| `add` | | Imports a library that has been packaged as a **nest library**, running its install schematic. |
108+
| `info` | `i` | Displays information about installed nest packages and other helpful system info. |

0 commit comments

Comments
 (0)