NestJS Cheat Sheet

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

The reference material consulted while preparing these pages is listed in the section bibliography.

A single-page, colour-coded summary of the NestJS essentials, written against NestJS 12.1 (@nestjs/core 12.1.2), the Nest CLI 12.0.8, Node.js 22/24 LTS, TypeScript 6, Express 5 and Fastify 5 (versions verified 2026-10-02) — what NestJS is and is not, the CLI and monorepo mode, bootstrap options, modules, controllers and providers, the request lifecycle, pipes and validation, exception filters, dynamic modules and lifecycle hooks, configuration, data access and caching, HTTP features, authentication and authorization, OpenAPI, GraphQL, WebSockets, microservices, CQRS and reliability packages, testing, production, and a strip of what changed since older tutorials — handy for quick memorization or as a downloadable PDF desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages:

Start here — NestJS.

OpenAPI — OpenAPI & Swagger.

WebSockets — WebSockets.