CLI Commands Reference
Lila Framework provides powerful CLI tools to speed up development. All commands
follow the pattern
lila-{command}
Model Generator
Create SQLAlchemy models with CRUD methods automatically.
# Create a new model lila-model create --name Product # Create with custom table name lila-model create --name Product --table products # List all models lila-model list-models
Scaffold Generator
Generate complete CRUD functionality from existing models.
# Generate scaffold from model lila-scaffold-crud --model Product # Custom route name lila-scaffold-crud --model Product --name products
Migrations
Run database migrations to create tables from models.
# Run migrations lila-migrations migrate # Refresh (drop and recreate all tables) lila-migrations migrate --refresh
Authentication
Generate authentication system with login, register, and password recovery.
# Generate auth system lila-auth main
Admin Panel
Create admin users and admin panel.
# Create admin user lila-create-admin --password mypassword # Create admin panel lila-create-panel-admin --password mypassword
Minify Assets
Minify CSS and JavaScript files for production.
# Minify all CSS and JS files lila-minify
React Integration
Setup React development environment with Lila backend.
# Setup React lila-react create # Run react development server lila-react dev