NestJS CLI

Official CLI tool for the NestJS framework that scaffolds new projects, generates modules/controllers/services/guards, and manages builds for Node.js TypeScript applications.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Developer Tools nestjs node typescript scaffolding code-generation framework open-source cli
⚙ Agent Friendliness
68
/ 100
Can an agent use this?
🔒 Security
78
/ 100
Is it safe for agents?
⚡ Reliability
78
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
88
Error Messages
82
Auth Simplicity
100
Rate Limits
100

🔒 Security

TLS Enforcement
80
Auth Strength
75
Scope Granularity
70
Dep. Hygiene
82
Secret Handling
85

CLI tool itself poses minimal security risk; generated code scaffolds include basic validation patterns; `nest add` installs NPM packages which should be audited for supply chain risk.

⚡ Reliability

Uptime/SLA
70
Version Stability
85
Breaking Changes
80
Error Recovery
78
AF Security Reliability

Best When

Rapidly bootstrapping or extending NestJS applications where consistent project structure and reduced boilerplate are priorities.

Avoid When

Your team prefers manual project setup for full control over structure, or you are not using the NestJS framework.

Use Cases

  • Scaffold a new NestJS project with `nest new` including TypeScript config, testing setup, and package.json in one command
  • Generate boilerplate for controllers, services, modules, guards, and pipes with `nest generate` to speed up NestJS development
  • Build and watch TypeScript source files with `nest build` and `nest start --watch` during development
  • Add and configure NestJS libraries or plugins via `nest add` which runs schematics-based code transforms
  • Generate complete CRUD resource modules with `nest generate resource` including DTOs, entity stubs, and routing

Not For

  • Non-NestJS Node.js projects — this CLI is tightly coupled to NestJS conventions and decorators
  • Runtime API interactions — this is a development-time scaffolding tool with no runtime API surface
  • Deploying or managing NestJS applications — deployment is handled by standard Node.js/Docker tooling

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
No
SDK
No
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

Local CLI tool; no authentication required. NPM registry auth needed only for `nest add` commands that install packages.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

MIT licensed; NestJS framework and CLI are fully open source.

Agent Metadata

Pagination
none
Idempotent
No
Retry Guidance
Not documented

Known Gotchas

  • Interactive prompts for project name and package manager in `nest new` will hang non-interactive agent sessions — always pass --name and --package-manager flags
  • Generating a resource with `nest generate resource` prompts for transport layer type (REST, GraphQL, etc.) interactively — must pipe input or use schematics options flags to avoid blocking
  • The --no-spec flag must be passed explicitly if agents do not want test spec files generated alongside each component
  • Generated files follow NestJS module registration conventions — agents adding modules must also manually register them in the parent module's imports array or the module will not load
  • nest build output goes to ./dist by default — agents that move or rename the dist directory must update nest-cli.json sourceRoot and entryFile accordingly

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for NestJS CLI.

$99

Scores are editorial opinions as of 2026-03-06.

5210
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered