{"repo":"Pop-Code/nestjs-console","free":true,"listed":false,"github":"https://github.com/Pop-Code/nestjs-console","clone":"git clone https://github.com/Pop-Code/nestjs-console.git","description":"A nestjs module that provide a cli to your application.","language":"TypeScript","stars":581,"topics":["nestjs","cli","console","typescript","command","commander","es6","javascript","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"[ ][npm] [ ][codecov] [ ][npmchart] [nestjs-console][npm] is a module that provide a cli. A ready to use service class for your modules that exposes methods to register commands and sub commands using the [npm package commander][commander] Why The nestjs framework is missing a cli to access the application context. Common use case : Headless application, cron task, export data, etc... [nestjs-console][npm] provide a way to bind cli command and subcommands to providers's methods. How it works The console service works as a standalone process, like the classic entry point, and will initialize a NestApplicationContext (headless) instead a NestApplication. The console service will be accessible inside the container. 1. Bootstrap (entry point e.g console.ts) is invoked by cli. 2. Create a headless nest app, any module inside the app can create command and subcommands using nestjs-console with [commander][commander] 3. nestjs-console invoke commander 4. commander will do the rest. Documentation - Wiki - API - Changelog [npm]: https://www.npmjs.com/package/nestjs-console [npmchart]: https://npmcharts.com/compare/nestjs-console?minimal=true [ci]: https://circleci.com/gh/Pop-Code/nestjs-console [codecov]: https://codecov.io/gh/Pop-Code/nestjs-console [commander]: https://www.npmjs.com/package/commander [changelog]: https://github.com/Pop-Code/nestjs-console/blob/master/CHANGELOG.md","default_branch":null,"files":null,"tree":[],"storefront":"/r/Pop-Code","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Pop-Code/nestjs-console/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}