Skip to main content

Symfony CLI

Usual commands

ActionCommand line
php bin/console make:controllerCreate a controller
php bin/console doctrine:database:createCreate the database (with Doctrine)
php bin/console make:entityCreate an entity
php bin/console make:migrationCreate a database migration script
php bin/console doctrine:migrations:migrateApply a database migration
php bin/console server:runLaunch the server
php bin/phpunitLaunch the unit tests
php bin/console debug:routerDebug routing definitions