NestJS Console Module

JSON →
library 10.0.0 ·javascript
verified May 27, 2026

nestjs-console is a NestJS module that provides a command-line interface (CLI) for NestJS applications. It enables developers to define and run console commands within the application's dependency injection context, which is particularly useful for tasks such as headless operations, cron jobs, data processing, and migrations. The module integrates with the popular `commander.js` package for robust command parsing and execution. It bootstraps a `NestApplicationContext` (headless) rather than a full `NestApplication`, ensuring that CLI commands have access to all necessary NestJS services without initiating an HTTP server. The current stable version is 10.0.0, which supports NestJS v11, Commander v12 & v13, and requires Node.js >= v20.0.0. Its release cadence is closely tied to major NestJS and Commander updates. A key differentiator is its seamless integration with NestJS's decorators and DI system, allowing command logic to reside directly within NestJS providers.

total hits 29
actors 11 distinct systems
last hit 22h ago ByteDance
Amazonbot
4
MetaBot
4
GPTBot
2
ByteDance
2
ChatGPT-User
2
Script
1
ClaudeBot
1
Search engines
2
Humans
6

top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇩🇪 Germany · 🇸🇬 Singapore