CLI
Kyrin comes with a built-in CLI to help you create new projects quickly.
Installation
bash
npm install -g kyrinCreate a New Project
Interactive Mode
bash
kyrin spawnThis will prompt you to:
- Enter your project name
- Select a database (SQLite, PostgreSQL, MySQL, or None)
Command Mode
You can also pass arguments directly:
bash
kyrin spawn my-project --db=sqliteAvailable database options:
sqlite- SQLite (default, great for development)postgres- PostgreSQLmysql- MySQLnone- Skip database setup
Without Global Installation
If you don't have Kyrin installed globally, you can use:
bash
bunx kyrin spawn my-projectOr from within the Kyrin project directory:
bash
bun run spawn my-projectWhat's Created
After running kyrin spawn, you'll get:
my-project/
├── src/
│ └── index.ts # Your server entry point
├── .gitignore
├── package.json
└── tsconfig.jsonRunning Your Project
bash
cd my-project
bun run devYour server will start at http://localhost:3000.