The Repository for Nest-Init CLI made using NestJS, NestJS Commander, Inquirer and Passport.js.
<a href="https://github.com/GDGAlgiers/nest-init/issues">Report Bug</a>
·
<a href="https://github.com/GDGAlgiers/nest-init/issues">Request Feature</a>
Nest-Init is a powerful CLI tool designed to streamline the creation and configuration of new NestJS projects. It simplifies the setup process, allowing you to integrate different databases with ORMs and set up authentication efficiently. Nest-Init equips you with essential tools to launch your next NestJS application with ease.
To get started with Nest-Init, ensure you have Node.js and npm installed on your machine.
bash
npm install -g nest-init-cli
If you're interested in maintaining or developing the package, follow these steps:
bash
git clone https://github.com/GDGAlgiers/nest-init.git
cd nest-initbash
npm installbash
npm run startMake your changes and create a pull request:
Make sure to follow the contribution guidelines in CONTRIBUTION.md
Once you have configured your project with Nest-Init, you can begin using the CLI within your NestJS project.
Initializing the CLI
In your project directory, execute the command:
nest-init
After initializing the CLI, you will see the following menu options:
1. Configure ORM with Database
2. Setup Authentication Strategies and Services
Choose the option that suits your project needs and follow the prompts to configure your NestJS application accordingly.
Use the following command to install and configure your chosen ORM with a specific database:
nest-init install-<ORM> -<database>
Below, you'll find detailed commands for each combination of ORM and supported databases.
Configure MikroORM with MySQL, PostgreSQL, or MongoDB.
bash
nest-init install-mikroorm -my
or
bash
nest-init install-mikroorm --mysql
bash
nest-init install-mikroorm -psql
or
bash
nest-init install-mikroorm --postgresql
bash
nest-init install-mikroorm -m
or
bash
nest-init install-mikroorm --mongodbConfigure TypeORM with MySQL, PostgreSQL, or MongoDB.
bash
nest-init install-typeorm -my
or
bash
nest-init install-typeorm --mysql
bash
nest-init install-typeorm -psql
or
bash
nest-init install-typeorm --postgresql
bash
nest-init install-typeorm -m
or
bash
nest-init install-typeorm --mongodbConfigure Mongoose with MongoDB.
nest-init install-mongoose -m
or
nest-init install-mongoose --mongodb
Configure Sequelize with MySQL, PostgreSQL, or MongoDB.
bash
nest-init install-sequelize -my
or
bash
nest-init install-sequelize --mysql
bash
nest-init install-sequelize -psql
or
bash
nest-init install-sequelize --postgresqlConfigure Prisma with PostgreSQL or MongoDB.
bash
nest-init install-prisma -psql
or
bash
nest-init install-prisma --postgresql
bash
nest-init install-prisma -m
or
bash
nest-init install-prisma --mongodbConfigure Drizzle with MySQL, PostgreSQL, or MongoDB.
bash
nest-init install-drizzle -my
or
bash
nest-init install-drizzle --mysql
bash
nest-init install-drizzle -psql
or
bash
nest-init install-drizzle --postgresql
bash
nest-init install-drizzle -m
or
bash
nest-init install-drizzle --mongodbNest-Init provides a guided questionnaire to configure authentication services and strategies for your NestJS project. To begin, run the following command:
nest-init add-auth
This command initiates a series of prompts where you can select the options that best fit your project requirements:
JWT (JSON Web Tokens)
Implement stateless authentication using JWTs, which are compact tokens verified by the server based on contained claims.
Sessions
Supports session-based authentication for managing server-side session states, ideal for applications requiring stateful interactions with clients.
Join us in the GDG Algiers' Community Discord here and feel free to ask any questions you may have.
Thank you for considering contributing to the Nest-Init project. We welcome contributions from the community to make this project even better. Please take a moment to review our CONTRIBUTION.md file where the Contribution Guidelines are listed.
Distributed under the MIT License. See LICENSE for more information.
GDG Algiers - @gdg_algiers - gdg.algiers@esi.dz
Project Link: https://github.com/GDGAlgiers/nest-init
$ claude mcp add nest-init-cli \
-- python -m otcore.mcp_server <graph>