Skip to main content
The Lyger Framework includes a powerful command-line interface tool called rawr that helps you quickly scaffold and manage your application.

Getting Started

The CLI tool is accessed through the rawr file in your project root:
php rawr <command> [arguments] [options]
The rawr CLI is designed for rapid development with zero configuration required. All commands work out of the box.

Available Commands

Server Management

serve

Start the development server with PHP built-in server

serve --port

Start server on custom port (default: 8000)

Code Generation

make:controller

Create a new controller class

make:model

Create a new model class

make:migration

Create a new database migration

make:auth

Generate authentication scaffolding

make:dash

Create an admin dashboard controller

Database Management

migrate

Run pending database migrations

migrate:rollback

Rollback the last migration batch

migrate:status

Show migration status

Command Structure

All Lyger CLI commands follow a consistent structure:
php rawr <command> <name> [--options]
command
string
required
The action to perform (e.g., serve, make:controller, migrate)
name
string
The name of the resource to create (for make commands)
options
flags
Additional flags to modify command behavior (e.g., --migration, --port=8080)

Common Options

Port Configuration

Many commands support custom port configuration:
php rawr serve --port=8080

Migration Flag

When creating models, you can automatically generate a migration:
php rawr make:model User --migration

Quick Examples

php rawr serve

Help Command

To see all available commands, run rawr without arguments:
php rawr
This displays the help menu with a complete list of commands and their descriptions.

Next Steps

Server Commands

Learn how to start and configure the development server

Code Generation

Explore scaffolding commands for rapid development

Database Migrations

Manage your database schema with migrations

Authentication

Set up authentication in minutes