Basic Commands for Symfony Framework

Here i am sharing some basic commands for symfony framework those are commonly used when you will develop a project by symfony framework. Normally Symfony used two ORM those are docrine and Propel. These commands are for doctrine ORM.

Creates Application:
symfony generate:app [app_name]

Creates database for current model
symfony doctrine:build-db

Creates Model classes for current model
symfony doctrine:build-model

Creates Form classes for current model
symfony doctrine:build-form

Creates Filter classes for current model
symfony doctrine:build-filter

Create Module:
symfony generate:module [app_name] [module_name]

Create Module with Show:
symfony doctrine:generate-module –with-show [app_name] [module_name] [model_name]

Creates schema.yml from current database
symfony doctrine:build-schema

Creates sql for the current model
symfony doctrine:build-sql

Inserts sql for the current model
symfony doctrine:insert-sql}