# Setup with NestJS CLI — NestJS

Source: https://www.geekswithgeeks.com/en/nestjs/nestjs-setup-cli

> Create and scaffold a new NestJS project in seconds.

## Create a project

The `@nestjs/cli` package generates everything—package.json, tsconfig, and starter files.

```bash
npm install -g @nestjs/cli
nest new my-app
cd my-app
npm run start:dev
```

## Generated files

You get a `src/` folder with `main.ts` (bootstrap), `app.module.ts` (root module), and `app.controller.ts` + `app.service.ts` (example controller/service pair).
