nestjs-swagger-setup - Install and Configure NestJS Swagger UI and OpenAPI JSON
Install, repair, and verify OpenAPI documentation in NestJS using @nestjs/swagger with environment-based controls.
Tags
Updated: 2026-03-10What this skill does
- install dependencies
- configure ConfigModule
- create setup helper
- wire bootstrap call
- create environment variables
- verify documentation routes
- validate bearer auth
Inputs
- project root path
- package manager
- existing global prefix usage
- production docs exposure preference
Outputs
- updated dependency manifest
- updated root module config
- updated main.ts bootstrap call
- setup-swagger.ts helper file
- updated .env Swagger variables
- verification summary
Requirements
- NestJS project with main.ts
- root module exists
- Node.js environment
- dependency compatibility
- write access to source files
- write access to environment files
