Get TOP Windows and MAC Softwares up to 35% off (NEW!)

* indicates required

Symfony 3 Console Commands - Symfony Clear Cache and more

We will be adding Symfony 3 console commands as we go along:

How to run a command?

In the windows 7,8,10 search bar type "cmd", go to your project folder and type any of the below commands:


Run the server:

php bin/console server:run

Create a new project:

php symfony.phar new project

Clear Symfony 3 Cache:

php bin/console cache:clear

Create a Symfony 3 Bundle:

php bin/console generate:bundle

Create database:

php bin/console doctrine:database:create

Start entity(Generate Model) generator:

php bin/console doctrine:generate:entity

Create Table Name by typing:

During this command, you will need to create all your table fields one by one


Get the entities to update the database

php bin/console doctrine:schema:update --force

After the creation of your entities, validate them:

php bin/console doctrine:schema:validate


After changing your database code in your files situated here:


Run this command:

php bin/console doctrine:migrations:diff

After running the above command, run this to execute a migrate up or down:

php bin/console doctrine:migrations:execute

Generate blank migration

php bin/console doctrine:migrations:generate

Execute migration by choosing version

php bin/console doctrine:migrations:migrate

View status of a set of migrations

php bin/console doctrine:migrations:status

Manually add and delete migration versions

php bin/console doctrine:migrations:version

To regenerate an entity:

Run this:

php bin/console doctrine:mapping:import --force AppBundle xml

Then that:

php app/console doctrine:generate:entities AppBundle