Symfony CLI
Usual commands
Action | Command line |
---|---|
php bin/console make:controller | Create a controller |
php bin/console doctrine:database:create | Create the database (with Doctrine) |
php bin/console make:entity | Create an entity |
php bin/console make:migration | Create a database migration script |
php bin/console doctrine:migrations:migrate | Apply a database migration |
php bin/console server:run | Launch the server |
php bin/phpunit | Launch the unit tests |
php bin/console debug:router | Debug routing definitions |