MoroJS CLI

Command-Line Interface for Professional Development

The official CLI for the MoroJS framework provides a complete set of tools for building modern, high-performance APIs and microservices. From project scaffolding to production deployment, streamline your entire development workflow.

Quick Start

Installation

Install globally

bash

1npm install -g @morojs/cli

Create Your First Project

Initialize project

bash

1morojs-cli init my-api \
2  --runtime=node \
3  --database=postgresql \
4  --features=auth,cors,docs

That's it!

Your production-ready MoroJS application is now set up with:

TypeScript configuration
Database setup
Authentication system
API documentation

Powerful Features

Common Commands

Project Management

Project commands

bash

1# Create new project with template
2morojs-cli init my-service --template=microservice --runtime=vercel-edge
3
4# Add configuration
5morojs-cli config init --environment=production
6
7# Validate configuration
8morojs-cli config validate

Module Development

Module commands

bash

1# Create advanced module
2morojs-cli module create users --features=websocket,database,auth
3
4# List modules
5morojs-cli module list
6
7# Add middleware
8morojs-cli middleware add auth --config='{"strategy":"jwt"}'

Database & Deployment

Database and deployment

bash

1# Setup database
2morojs-cli db setup postgresql --with-migrations
3
4# Run migrations
5morojs-cli db migrate --up
6
7# Deploy to different runtimes
8morojs-cli deploy vercel --domain=myapi.vercel.app
9morojs-cli deploy lambda --region=us-west-2
10morojs-cli deploy workers --name=my-worker

Project Templates

API Server

Perfect for REST APIs, GraphQL servers, and backend services.

Create API

bash

1morojs-cli init my-api --template=api --runtime=node --database=postgresql

Microservice

Lightweight services optimized for serverless deployment.

Create microservice

bash

1morojs-cli init my-service --template=microservice --runtime=vercel-edge

Full-stack

Complete application with frontend integration support.

Create full-stack app

bash

1morojs-cli init my-app --template=fullstack --features=auth,websocket,docs

Ready to Get Started?

Install the MoroJS CLI and start building production-ready applications with enterprise features, database integration, and automated deployment.