A powerful CLI tool to accelerate Nest.js development by scaffolding features, components, and more with a single command.
Nest.js Toolkit CLI is a command-line interface (CLI) built to accelerate your Nest.js development workflow. It removes repetitive boilerplate and lets you generate powerful modules and components instantly, so you can focus on building your application's core features.
- Rapid Scaffolding: Instantly generate robust NestJS modules and supporting files with a single command.
- Best Practices Included: All generated code follows modern NestJS conventions and project structure.
- Type-Safe by Default: Every file is written in TypeScript to ensure maximum type safety.
- Developer-Friendly: Simple, memorable commands make scaffolding features fast and intuitive.
- Extensible Architecture: Easily add new generators for modules, services, decorators, and more as your project grows.
-
Clone the Repository:
git clone https://github.com/isweerasingha/nest-toolkit.git cd nextjs-app-toolkit
-
Install Dependencies:
npm install
-
Build the Project: The build command compiles all TypeScript source files to JavaScript in the
dist/
folder and copies the necessary template files.npm run build
-
Link for Local Testing: This command makes your local version of the toolkit available as a global command on your system.
npm link
After linking, any changes you make to the source code will be active after you run
npm run build
again.
Navigate to the root directory of any Next.js project in your terminal and run the toolkit's commands.
nest-toolkit init:uniform-response
or
nest-toolkit ir
Generate as init:uniform-response
The command above creates the following directory and files at libs/nest-uniform-response/
:
libs/nest-uniform-response/
├── src/
│ ├── index.ts
│ ├── nest-uniform-response.module.ts
│ ├── nest-uniform-response.service.ts
│ └── lib/
│ ├── config/
│ │ └── error.ts
│ ├── constants/
│ │ └── providers.constant.ts
│ └── decorators/
│ ├── json-response-config.decorator.ts
│ ├── json-response.decorator.ts
│ └── raw-response.decorator.ts
Command | Alias | Description |
---|---|---|
init:uniform-response |
ir |
Initializes a robust NestJS Uniform Response setup in libs/nest-uniform-response/ . |
Contributions are welcome! If you'd like to help improve the toolkit, please follow these steps to set up a local development environment.
This project is maintained by Isuru Weerasingha.
- GitHub: @isweerasingha
- LinkedIn: linkedin.com/in/isweerasingha
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for the full license text.