{"id":15043890,"url":"https://github.com/pop-code/nestjs-console","last_synced_at":"2025-05-14T09:10:11.939Z","repository":{"id":34267584,"uuid":"174146560","full_name":"Pop-Code/nestjs-console","owner":"Pop-Code","description":"A nestjs module that provide a cli to your application.","archived":false,"fork":false,"pushed_at":"2025-04-07T18:04:54.000Z","size":2559,"stargazers_count":571,"open_issues_count":5,"forks_count":26,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:59:13.905Z","etag":null,"topics":["cli","command","commander","console","es6","javascript","nestjs","terminal","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nestjs-console","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pop-Code.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M754R7Y5FE6DN\u0026source=url"]}},"created_at":"2019-03-06T13:03:38.000Z","updated_at":"2025-04-09T01:03:20.000Z","dependencies_parsed_at":"2025-03-01T09:10:44.071Z","dependency_job_id":"8d45bf72-40a4-4dbd-b493-c1615c929888","html_url":"https://github.com/Pop-Code/nestjs-console","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pop-Code%2Fnestjs-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pop-Code%2Fnestjs-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pop-Code%2Fnestjs-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pop-Code%2Fnestjs-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pop-Code","download_url":"https://codeload.github.com/Pop-Code/nestjs-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661706,"owners_count":21141450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command","commander","console","es6","javascript","nestjs","terminal","typescript"],"created_at":"2024-09-24T20:49:46.630Z","updated_at":"2025-04-13T03:59:22.238Z","avatar_url":"https://github.com/Pop-Code.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\n[![nestjs-console](https://raw.githubusercontent.com/Pop-Code/nestjs-console/master/resources/logo-frame.png)][npm]\n[![Actions Status](https://github.com/Pop-Code/nestjs-console/workflows/Test/badge.svg)](https://github.com/Pop-Code/nestjs-console/actions)\n[![codecov](https://codecov.io/gh/Pop-Code/nestjs-console/branch/master/graph/badge.svg)][codecov]\n[![NPM Downloads](https://img.shields.io/npm/dm/nestjs-console.svg?style=flat)][npmchart]\n![npm (tag)](https://img.shields.io/npm/v/nestjs-console/latest)\n![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/nestjs-console/peer/@nestjs/core)\n![npm dependency version (scoped)](https://img.shields.io/npm/dependency-version/nestjs-console/commander)\n\n\u003c/div\u003e\n\n[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]\n\n## Why\n\nThe nestjs framework is missing a cli to access the application context.  \nCommon use case : Headless application, cron task, export data, etc...\n[nestjs-console][npm] provide a way to bind cli command and subcommands to providers's methods.\n\n## How it works\n\nThe console service works as a standalone process, like the classic entry point, and will initialize a NestApplicationContext (headless) instead a NestApplication.\nThe console service will be accessible inside the container.\n\n1. Bootstrap (entry point e.g console.ts) is invoked by cli.\n2. Create a headless nest app, any module inside the app can create command and subcommands using nestjs-console with [commander][commander]\n3. nestjs-console invoke commander\n4. commander will do the rest.\n\n# Documentation\n\n- [Wiki](https://github.com/Pop-Code/nestjs-console/wiki)\n- [API](https://pop-code.github.io/nestjs-console)\n- [Changelog](https://github.com/Pop-Code/nestjs-console/blob/master/CHANGELOG.md)\n\n[npm]: https://www.npmjs.com/package/nestjs-console\n[npmchart]: https://npmcharts.com/compare/nestjs-console?minimal=true\n[ci]: https://circleci.com/gh/Pop-Code/nestjs-console\n[codecov]: https://codecov.io/gh/Pop-Code/nestjs-console\n[commander]: https://www.npmjs.com/package/commander\n[changelog]: https://github.com/Pop-Code/nestjs-console/blob/master/CHANGELOG.md\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M754R7Y5FE6DN\u0026source=url"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-code%2Fnestjs-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpop-code%2Fnestjs-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-code%2Fnestjs-console/lists"}