Symfony CLI snippet – shortcuts

Do you know that in symfony cli you can use shortcuts? you only need to write the first letter of the command and this will run perfectly.

Example:

php app/console cache:clear

You can use:

php app/console c:c

Same with doctrine commands:

php app/console doctrine:database:create
php app/console doctrine:database:drop   

can be

php app/console d:d:c
php app/console d:d:d   

Enjoy!

Total Views: 21 ,