CLI Commands Reference¶
Complete reference for RhamaaCLI commands.
Project Commands¶
rhamaa cms start¶
Create a new RhamaaCMS project.
# Create with default (Base) template
rhamaa cms start myproject
# Create with specific template
rhamaa cms start myproject --template react
rhamaa cms start myproject --template iot
rhamaa cms start myproject --template base
# Options
--template, -t # Template to use
--template-url # Custom template URL
--template-file # Local template file
--local-dev # Skip template, setup local dev
--list # List available templates
rhamaa cms run¶
Run development server.
# Development server (Django runserver)
rhamaa cms run
# Custom host/port
rhamaa cms run --host 0.0.0.0 --port 8080
# Production mode (Gunicorn) - Base/IoT only
rhamaa cms run --prod
rhamaa cms startapp¶
Create a new Wagtail app.
# Create minimal Django app
rhamaa cms startapp blog
# Create Wagtail app with templates
rhamaa cms startapp blog --type wagtail
# Force overwrite existing
rhamaa cms startapp blog --force
# List prebuilt apps
rhamaa cms startapp --list
# Install prebuilt app
rhamaa cms startapp blog --prebuild articles
Database Commands¶
rhamaa cms migrate¶
Run Django migrations.
rhamaa cms makemigrations¶
Create new migrations.
Utility Commands¶
rhamaa cms check¶
Run Django system checks.
rhamaa cms collectstatic¶
Collect static files.
rhamaa cms createsuperuser¶
Create admin user.
rhamaa cms shell¶
Open Django shell.
Search Commands¶
rhamaa cms update_index¶
Update search index.
Template Commands¶
rhamaa cms build-template¶
Convert a project back to a template.
# Build from current directory
rhamaa cms build-template
# Build from specific directory
rhamaa cms build-template /path/to/project
# Custom slug
rhamaa cms build-template --slug myproject
# Output file
rhamaa cms build-template --output my-template.zip
# Skip verbatim wrapping
rhamaa cms build-template --no-wrap-templates
Info Commands¶
rhamaa cms status¶
Show project status.
Output:
Project Path: /path/to/project
✓ manage.py found
✓ apps/ directory (3 apps)
✓ requirements.txt found
rhamaa cms info¶
Show detailed info.
Output:
Global Options¶
Available for all commands:
Examples¶
Complete Workflow¶
# 1. Create project
rhamaa cms start myblog --template base
# 2. Enter directory
cd myblog
# 3. Install dependencies
pip install -r requirements.txt
pnpm install
# 4. Setup database
rhamaa cms migrate
rhamaa cms createsuperuser
# 5. Build assets
pnpm run build
# 6. Run server
rhamaa cms run