> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duca.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Nest REST generation commands

> Nest CLI commands to generate REST API endpoints, DTOs and Entities

### REST module generation command

```bash theme={null}
nest g res <module-name>
```

`nest g` resource command not only generates all the NestJS building blocks (module, service, controller classes) but also an entity class, DTO classes as well as the testing (`.spec`) files.
