Skip to main content
The Kit CLI provides a comprehensive set of commands for creating projects, generating code, running development servers, and managing database migrations. Inspired by Laravel’s Artisan CLI, it streamlines common development tasks.

Installation

The Kit CLI is installed when you install the Kit framework:
cargo install kit-cli

Available Commands

Project Commands

CommandDescription
kit new [name]Create a new Kit project
kit serveStart development servers (backend + frontend)

Generator Commands

CommandDescription
kit make:controller <name>Generate a new controller
kit make:action <name>Generate a new action
kit make:middleware <name>Generate a new middleware
kit make:error <name>Generate a new domain error
kit make:migration <name>Generate a new database migration
kit make:inertia <name>Generate a new Inertia.js page component
kit generate-typesGenerate TypeScript types from Rust structs

Migration Commands

CommandDescription
kit migrateRun all pending migrations
kit migrate:statusShow migration status
kit migrate:rollbackRollback the last migration(s)
kit migrate:freshDrop all tables and re-run migrations
kit db:syncSync database schema to entity files

Quick Start

# Create a new project
kit new my-app

# Navigate to project
cd my-app

# Start development server
kit serve

# Generate code
kit make:controller User
kit make:action CreateUser
kit make:middleware Auth

# Run migrations
kit migrate

Getting Help

Use --help with any command to see available options:
kit --help
kit serve --help
kit make:controller --help