Interactive Project Builder
Configure your MoroJS project step-by-step. Select your options below and copy the generated command to get started — it runs straight from npx, no install required.
Interactive mode: Runnpx @morojs/cli init my-apiwith no flags and the CLI walks you through each option step-by-step. Hit Enter on any prompt to accept the recommended default (runtime=node,validation=zod, etc.). When it's done, the CLI prints the equivalent--fast-style command so you can repeat the setup elsewhere with one line.
Non-interactive mode: Pass any flag (e.g. --runtime or--validation) and the CLI skips all prompts, applying sensible defaults for anything you didn't specify (runtime defaults tonode unless overridden). Use--fast to accept every default with zero prompts.
Quality-of-life: typos like--runtime=nod or--features=corss surface a "did you mean…?" hint instead of silently producing a broken project. Use --dry-run to preview the file tree without writing anything, and--package-manager (or auto-detection) for npm / yarn / pnpm.
Choose Template
Select the type of project you want to build
Choose Runtime
Select where your application will run
Choose Database
OptionalSelect your database adapter or choose none for API-only projects
Choose Validation Library
OptionalSelect your preferred validation library for request/response validation
Choose WebSocket Adapter
OptionalSelect WebSocket adapter for real-time features
Select Features
OptionalChoose additional features to include in your project
Package Manager
OptionalPick a package manager — or leave on auto-detect (the CLI uses whichever PM ran it).
Dry Run
OptionalYour Command
Copy and run this command in your terminal to create your project:
npx @morojs/cli init my-project \ --database=postgresql \ --features=auth,cors,docs
API Server
Perfect for REST APIs, GraphQL servers, and backend services
Includes:
Quick Examples
Fastest Start
Skip every prompt
bash
--fast accepts every default (runtime=node, validation=zod, no database) and creates the project in seconds.
Interactive Mode
No flags = guided prompts
bash
Running with no flags walks you through each option step-by-step. Hit Enter on any prompt to accept the recommended default.
Pick Your Stack
Any flag = non-interactive
bash
Passing any flag puts the CLI into non-interactive mode and auto-fills everything else with sensible defaults — no follow-up questions. runtimedefaults to node unless you override it.
Production Setup
Enterprise configuration
bash
Enterprise-ready project with all features configured. Ideal for production deployments.
All Command Options
Complete syntax
bash