Developer documentation for the lightweight, PHP-FPM-oriented Bhitti framework.
Bhitti’s CLI entry point is the root run script:
php run
Create a table migration:
php run migrate:create users
Create an alteration migration:
php run migrate:alter users
Custom path:
php run migrate:create users --path=database/custom-migrations
Run pending migrations:
php run migrate
Named connection:
php run migrate --connection=pgsql
Rollback the latest batch:
php run migrate:rollback
Rollback a number of migrations:
php run migrate:rollback --step=2
Status:
php run migrate:status
When APP_DEBUG=false, migration and rollback commands require --force.
Create and register a seeder:
php run create:seeder users
Run active registered seeders:
php run db:seed
Run one file:
php run db:seed --filename=users
Configuration cache:
php run config:cache
Route cache:
php run route:cache
Rebuild the route cache after changing route definitions or controller class/method #[Middleware] attributes, because controller middleware metadata is collected when routes are registered.
Clear application/generated caches:
php run cache:clear
cache:clear clears the active cache store and known file-backed/generated cache locations. APCu is process-local, so the command warns when clearing CLI APCu does not affect a separate PHP-FPM APCu process.
Application-specific command definitions live in config/commands.php; framework commands are registered separately by the framework’s FrameworkCommands registry.