Skip to main content
The kit new command creates a new Kit project with all the necessary files and directory structure.

Usage

kit new [name] [options]

Arguments

ArgumentDescription
nameThe name of the project (optional, will prompt if not provided)

Options

OptionDescription
--no-interactionSkip all prompts and use defaults
--no-gitSkip git initialization

Examples

Interactive Mode

kit new
This will prompt you for:
  • Project name
  • Database type (SQLite, PostgreSQL, MySQL)
  • Whether to include Inertia.js for frontend

Quick Start

kit new my-app
Creates a new project named “my-app” with interactive prompts for options.

Non-Interactive Mode

kit new my-app --no-interaction
Creates a project with all default settings:
  • SQLite database
  • Inertia.js frontend with React
  • Git repository initialized

Without Git

kit new my-app --no-git
Creates the project without initializing a git repository.

Generated Structure

my-app/
├── src/
│   ├── actions/           # Business logic actions
│   ├── controllers/       # HTTP controllers
│   ├── middleware/        # Custom middleware
│   ├── models/            # Database models
│   ├── config/            # Application configuration
│   ├── bootstrap.rs       # Service registration
│   ├── routes.rs          # Route definitions
│   └── main.rs            # Application entry point
├── frontend/              # Inertia.js frontend (if selected)
│   ├── src/
│   │   ├── pages/         # React page components
│   │   └── types/         # TypeScript types
│   ├── package.json
│   └── vite.config.ts
├── migrations/            # Database migrations
├── .env                   # Environment variables
├── .env.example           # Environment template
├── Cargo.toml             # Rust dependencies
└── README.md

What’s Included

  • Pre-configured Axum web server
  • SeaORM database integration
  • Inertia.js with React (optional)
  • TypeScript type generation
  • Hot-reload development server
  • Example controller, action, and middleware
  • Database migration setup