MoonUI CLI

Powerful command-line tool for adding components to your project. One-command installation with automatic dependency management.

RECOMMENDED

Quick Start with NPX

Use directly without installation

terminal
$ npx @moontra/moonui-cli@latest init

Always Latest

Uses the most recent version

No Global Install

Runs directly with npx

GLOBAL

Global Installation

Install once, use everywhere

terminal
$ npm install -g @moontra/moonui-cli

Faster Commands

Use moonui directly

Offline Usage

Works without internet

Quick Start Guide

Get up and running in 3 simple steps

1. Initialize Your Project

Set up MoonUI in your React or Next.js project:

terminal
$ npx @moontra/moonui-cli@latest init

✔ Installing dependencies...
✔ Setting up Tailwind CSS...
✔ Creating configuration...
✔ Done!

2. Add Components

Install the components you need:

terminal
$ npx @moontra/moonui-cli@latest add button card dialog

✔ Installing @radix-ui/react-slot...
✔ Creating components/ui/button.tsx...
✔ Creating components/ui/card.tsx...
✔ Creating components/ui/dialog.tsx...

3. Start Using Components

Import and use the components in your code:

app.tsx
import { Button } from "@/components/ui/button"
import { Card, CardContent } from "@/components/ui/card"

export default function App() {
  return (
    <Card>
      <CardContent>
        <Button>Click me</Button>
      </CardContent>
    </Card>
  )
}

Available Commands

Complete reference of all CLI commands

moonui init

Initialize MoonUI in your project. Sets up dependencies and configuration.

$ npx @moontra/moonui-cli@latest init

moonui add

Add components to your project with automatic dependency management.

$ moonui add button card --all

moonui theme

Manage themes and color schemes for your components.

$ moonui theme --set ocean

moonui templates

PRO

Install complete project templates with MoonUI.

$ moonui templates --list

moonui auth

Authenticate to access Pro components and features.

$ moonui auth login

moonui list

View all available components with their status.

$ moonui list --pro

Theme Management

Customize your UI with built-in themes

Available Theme Commands

# List all available preset themes$ moonui theme --list
# Set a preset theme (ocean, sunset, forest, etc.)$ moonui theme --set ocean
# Create custom theme interactively$ moonui theme --create
# Generate theme CSS file$ moonui theme --generate
# Export/Import theme configuration$ moonui theme --export my-theme.json$ moonui theme --import my-theme.json

Available Preset Themes:

default
ocean
sunset
forest
midnight
lavender
crimson
emerald

Project Templates

Complete starter projects for different use cases

PRO

Template Commands

# List all available templates$ moonui templates --list
# Download and install a template$ moonui templates --download dashboard-pro
# Check your template quota$ moonui templates --quota
# Filter templates by category$ moonui templates --category landing

Template Categories:

Dashboard
Landing Page
Blog
SaaS
Admin Panel
Analytics

Pro Features

Advanced capabilities with Pro license

Pro Component Access

With a Pro license, components are automatically loaded from the enhanced @moontra/moonui-pro package:

Advanced animations with Framer Motion
Premium hover effects and transitions
200+ exclusive Pro components

License Verification

Secure authentication system for Pro features:

$ moonui auth login
Device-based licensing
Offline support for 7 days
Automatic token refresh

Documentation

Detailed API reference and usage examples

Community

Join our Discord server for support and updates