CLI Quick Start
Get up and running with the MoroJS CLI in minutes. This guide will walk you through creating your first production-ready project with advanced features.
1. Install the CLI
Install globally
bash
This installs the CLI globally so you can use it from anywhere.
2. Create Your Project
Basic Project
Simple API project
bash
Advanced Project with Features
Enterprise-ready project
bash
Available Options
Runtimes
- •
node
- Traditional Node.js - •
vercel-edge
- Vercel Edge Runtime - •
aws-lambda
- AWS Lambda - •
cloudflare-workers
- Cloudflare Workers
Features
- •
auth
- Authentication system - •
cors
- CORS middleware - •
docs
- API documentation - •
rate-limit
- Rate limiting - •
websocket
- WebSocket support
3. Start Development
Navigate and start
bash
Your Project is Ready!
Your API is now running with:
TypeScript setup
Database integration
Authentication
API documentation
Visit http://localhost:3000
to see your API running!
4. Add Modules
Add complete feature modules to your application:
User Management Module
Create users module
bash
Products Module
Create products module
bash
5. Database Operations
Database commands
bash
6. Deploy Your API
Deploy to your preferred platform with a single command:
Vercel
bash
AWS Lambda
bash
Cloudflare Workers
bash
Additional Commands
Development Tools
Development commands
bash
Configuration & Security
Config and security
bash