Option Reference
All options for thecreate-node-blueprint CLI tool, with detailed descriptions, valid values, and usage examples.
Required Options
These options are required when using non-interactive mode. If any are omitted, the CLI will enter interactive mode.--name / -n
The name of your project. This will be used as the directory name and package name.Validation: Must contain only lowercase letters, numbers, and hyphens (matching pattern:
/^[a-z0-9-]+$/)Default: "" (empty string triggers interactive mode)--framework / -f
The Node.js web framework to use for your project.Valid values:
express- Express.js frameworkfastify- Fastify framework
"" (empty string triggers interactive mode)--database / -d
The database system to configure for your project.Valid values:
mysql- MySQL databasepostgres- PostgreSQL databasemongodb- MongoDB database
"" (empty string triggers interactive mode)Your database choice affects which ORMs are available. MongoDB requires the
mongoose ORM.--orm / -o
The ORM (Object-Relational Mapping) or ODM (Object-Document Mapping) tool to use.Valid values:
prisma- Prisma ORM (MySQL, PostgreSQL)drizzle- Drizzle ORM (MySQL, PostgreSQL)mongoose- Mongoose ODM (MongoDB only)
"" (empty string triggers interactive mode)Optional Options
These options have default values and can be omitted.--auth / -a
Authentication method to include in your project setup.Valid values:
jwt-auth- Basic JWT (JSON Web Token) authentication with login/register endpointsnone- No authentication setup
none--features
Additional features to include in your project. This option accepts multiple values.Valid values:
docker- Include Docker setup with Dockerfile and docker-compose.yml
[] (empty array)--git
Whether to initialize a git repository in the project directory.Default:
trueWhen enabled, the CLI will:- Run
git initin the project directory - Create an initial commit with the generated project files
--install
Whether to automatically install npm dependencies after project creation.Default:
trueWhen enabled, the CLI will run npm install in the project directory after scaffolding files.If you use
--no-install, you’ll need to manually run npm install in your project directory before running the application.Option Combinations
Minimal Required Options
All Options Specified
Quick Setup for Development
MongoDB Project
Boolean Option Syntax
Boolean options support two syntaxes:Validation Rules
Project Name
- Pattern:
/^[a-z0-9-]+$/ - Allowed: lowercase letters, numbers, hyphens
- Not allowed: uppercase letters, underscores, spaces, special characters
Database/ORM Compatibility
| Database | Compatible ORMs |
|---|---|
| postgres | prisma, drizzle |
| mysql | prisma, drizzle |
| mongodb | mongoose (only) |
Environment Considerations
All options can be provided via command-line arguments. The CLI does not currently read from environment variables or configuration files.