lich init¶
Create a new Lich Toolkit project with interactive prompts.
Usage¶
What It Does¶
- Asks project configuration questions
- Downloads the Lich project template
- Generates a complete project structure
- Sets up Docker, backend, and frontend
Options¶
| Option | Description |
|---|---|
--no-input |
Use all defaults, no prompts |
--help |
Show help |
Interactive Prompts¶
When you run lich init, you'll be asked:
Project Name¶
Used for folder name and package names.Project Type¶
Affects default configurations.Auth Strategy¶
Database¶
Use Redis?¶
For caching and sessions.Example¶
Full Interactive¶
$ lich init
🧙 Lich Toolkit - Project Generator
? Project name: my_saas
? Project type: saas_platform
? Auth strategy: jwt_builtin
? Database: postgresql
? Use Redis? Yes
📦 Creating project 'my_saas'...
✅ Project created!
Next steps:
cd my_saas
lich dev
Quick with Defaults¶
Generated Structure¶
After lich init, you'll have:
my_saas/
├── .lich/ # Lich config & AI rules
├── backend/ # FastAPI application
│ ├── api/http/ # API routers
│ ├── internal/ # Business logic
│ └── main.py
├── frontend/ # Next.js application
├── docker-compose.yml # Docker services
├── .env.example # Environment template
└── README.md
Best Use Cases¶
| Scenario | Command |
|---|---|
| New project with customization | lich init |
| Quick prototype | lich init --no-input |
| Team project with Keycloak | lich init → select keycloak |
Common Issues¶
Template Download Failed¶
If template download fails:
- Check internet connection
- Verify GitHub access
- Try again:
lich init
Already in a Lich Project¶
If you get "Already in a Lich project" error:
See Also¶
lich dev- Start development after init- Quick Start Guide