Console Commands

The Doctrine2 ORM integration offers several console commands under the
doctrine namespace. To view the command list you can use the list
command:

1

$ php bin/console list doctrine

A list of available commands will print out. You can find out more information
about any of these commands (or any Symfony command) by running the help
command. For example, to get details about the doctrine:database:create
command, run:

1

$ php bin/console help doctrine:database:create

Some notable or interesting commands include:

doctrine:ensure-production-settings - checks to see if the current
environment is configured efficiently for production. This should always
be run in the prod environment: