0
0
NestJSframework~5 mins

NestJS CLI installation - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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/cli
Click 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?
Anpm install nestjs
Bnpm install @nestjs/core
Cnest install cli
Dnpm install -g @nestjs/cli
What does the command nest new my-app do?
ACreates a new NestJS project named my-app
BUpdates the NestJS CLI
CInstalls NestJS dependencies
DRuns the NestJS server
How do you verify the NestJS CLI is installed?
Anpm version nestjs
Bnest --version
Cnest check
Dnpm list nestjs
Why install the NestJS CLI globally?
ATo install NestJS core libraries
BTo limit usage to one project
CTo use the nest command anywhere on your computer
DTo update Node.js
Which package manager is commonly used to install the NestJS CLI?
Anpm
Bpip
Cgem
Dcomposer
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.