Kalpasan CLI

kalpasan is the project's command-line companion. It scaffolds models, controllers and services, runs migrations and seeders, and starts a development server with file watching.

Installing

The binary lives at vendors/Garvan/kalpasan. A symlink at the project root makes it convenient to call:

ln -s vendors/Garvan/kalpasan kalpasan
./kalpasan --help

Available commands

./kalpasan make:model User           # scaffold app/models/User.{h,cpp}
./kalpasan make:controller User      # scaffold app/controllers/UserController.{h,cpp}
./kalpasan make:service User         # scaffold app/services/UserService.{h,cpp}
./kalpasan make:migration create_users

./kalpasan db:migrate                # delegates to garvan-migrate up
./kalpasan db:rollback               # delegates to garvan-migrate down
./kalpasan db:seed                   # run files in db/seeders/

./kalpasan serve --watch             # rebuild + restart on .cpp/.h change

All commands respect the active .env file so they target the right database.