Overview
Thecreate-node-blueprint CLI tool provides a streamlined way to scaffold Node.js projects with your preferred framework, database, and ORM configuration.
Basic Usage
Command Structure
Required Arguments
When using non-interactive mode, the following arguments are required:Project name for your new Node.js application. Must contain only lowercase letters, numbers, and hyphens.Alias:
-nNode.js framework to use for your project.Alias:
-fValid values: express, fastifyDatabase type for your application.Alias:
-dValid values: mysql, postgres, mongodbORM/ODM to use with your database.Alias:
-oValid values: prisma, drizzle, mongooseWhen using MongoDB, only
mongoose is available as the ORM option.Optional Arguments
Authentication method to include in your project.Alias:
-aValid values: jwt-auth, noneDefault: noneAdditional features to include in your project. Can be specified multiple times.Valid values:
dockerDefault: [] (empty array)Initialize a git repository in the project directory.Default:
trueUse --no-git to skip git initialization:Install npm packages after project creation.Default:
trueUse --no-install to skip dependency installation:Complete Examples
Basic Project with Express and PostgreSQL
Full-Featured Project with Authentication
Quick Setup Without Git or Installation
Using Short Aliases
Interactive Mode
If you omit any required arguments or run the command without options, the CLI will enter interactive mode:Exit Codes
0- Success1- Error during project creation or prompt cancellation