Recall & Review
beginner
What is the NestJS CLI used for?
The NestJS CLI is a tool that helps you create, develop, and manage NestJS projects easily from the command line.
Click to reveal answer
beginner
Which command installs the NestJS CLI globally using npm?
You install the NestJS CLI globally by running:
npm install -g @nestjs/cliClick to reveal answer
beginner
Why do we install the NestJS CLI globally?
Installing globally lets you run the
nest command anywhere on your computer, making it easy to create and manage projects.Click to reveal answer
beginner
What command creates a new NestJS project after installing the CLI?
Use
nest new project-name to create a new NestJS project with the CLI.Click to reveal answer
beginner
How can you check if the NestJS CLI is installed correctly?
Run
nest --version in your terminal. If it shows a version number, the CLI is installed correctly.Click to reveal answer
Which command installs the NestJS CLI globally?
✗ Incorrect
The correct command to install the NestJS CLI globally is
npm install -g @nestjs/cli.What does the command
nest new my-app do?✗ Incorrect
The command
nest new my-app creates a new NestJS project folder called my-app.How do you verify the NestJS CLI is installed?
✗ Incorrect
Running
nest --version shows the installed CLI version if it is installed.Why install the NestJS CLI globally?
✗ Incorrect
Global installation allows running the
nest command from any folder.Which package manager is commonly used to install the NestJS CLI?
✗ Incorrect
npm is the Node.js package manager used to install NestJS CLI.
Explain the steps to install the NestJS CLI and create a new project.
Think about commands you type in the terminal.
You got /3 concepts.
Why is it helpful to install the NestJS CLI globally instead of locally?
Consider how global tools work on your computer.
You got /3 concepts.