0% found this document useful (0 votes)
40 views

Symfony2 PDF

This document provides a cheat sheet for common Symfony2 console commands. It lists available commands grouped by purpose (e.g. help, doctrine, cache) along with brief descriptions of some key commands like generating entities, mapping conversions, schema updates and route debugging.

Uploaded by

niurkam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Symfony2 PDF

This document provides a cheat sheet for common Symfony2 console commands. It lists available commands grouped by purpose (e.g. help, doctrine, cache) along with brief descriptions of some key commands like generating entities, mapping conversions, schema updates and route debugging.

Uploaded by

niurkam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Symfony2 Cheat Sheet Console Commands Cheat Sheet Symfony version 2.0.

0-DEV - app Usage:[options] command [arguments] Options: --help -h Display this help message. --quiet -q Do not output any message. --verbose -v Increase verbosity of messages. --version -V Display this program version. --ansi -a Force ANSI output. --no-interaction -n Do not ask any interactive question. --shell -s Launch the shell. Available commands: help Displays help for a command (?) list Lists commands assets :install cache :warmup Warms up an empty cache doctrine :ensure-production- Verify that Doctrine is properly configured for a production environment. settings doctrine:cache :clear-metadata Clear all metadata cache for a entity manager. :clear-query Clear all query cache for a entity manager. :clear-result Clear result cache for a entity manager. doctrine:data :load Load data fixtures to your database. doctrine:database :create Create the configured databases. :drop Drop the configured databases. doctrine:generate :entities Generate entity classes and method stubs from your mapping information. :entity Generate a new Doctrine entity inside a bundle. :proxies Generates proxy classes for entity classes. :repositories Generate repository classes from your mapping information. doctrine:mapping :convert Convert mapping information between supported formats. :import Import mapping information from an existing database. :info Show basic information about all mapped entities. doctrine:query :dql Executes arbitrary DQL directly from the command line. :sql Executes arbitrary SQL directly from the command line. doctrine:schema :create Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output. :drop Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output. :update Processes the schema and either update the database schema of EntityManager Storage Connection or generate the SQL output.

init :bundle router :debug Displays current routes for an application :dump-apache Dumps all routes as Apache rewrite rules Symfony2 Cheat Sheet. Derived by installing the sandbox, going to the app directory and running 'php console' Created by John M Howitt - jmhowitt@mac.com - Aranaio Ltd http://www.aranaio.com 28th Februrary 2011. Also available as a Mac Widget. Please contact me for more information.

You might also like