Les commandes Symfony2 pour la console

Aujourd’hui je vous présente une liste des commandes Symfony2 et Symfony3 qui peuvent vous être utiles. Certaines sont à avoir sous la main.


Available commands:
  help                                 Displays help for a command
  list                                 Lists commands
 assetic
  assetic:dump                         Dumps all assets to the filesystem
  assetic:watch                        Dumps assets to the filesystem as their source files are modified
 assets
  assets:install                       Installs bundles web assets under a public web directory
 bazinga
  bazinga:js-translation:dump          Dumps all JS translation files to the filesystem
 cache
  cache:clear                          Clears the cache
  cache:warmup                         Warms up an empty cache
 config
  config:debug                         Dumps the current configuration for an extension
  config:dump-reference                Dumps the default configuration for an extension
 container
  container:debug                      Displays current services for an application
 debug
  debug:config                         Dumps the current configuration for an extension
  debug:container                      Displays current services for an application
  debug:event-dispatcher               Displays configured listeners for an application
  debug:router                         Displays current routes for an application
  debug:swiftmailer                    Displays current mailers for an application
  debug:translation                    Displays translation messages information
  debug:twig                           Shows a list of twig functions, filters, globals and tests
 doctrine
  doctrine:cache:clear-metadata        Clears all metadata cache for an entity manager
  doctrine:cache:clear-query           Clears all query cache for an entity manager
  doctrine:cache:clear-result          Clears result cache for an entity manager
  doctrine:database:create             Creates the configured database
  doctrine:database:drop               Drops the configured database
  doctrine:database:import             Import SQL file(s) directly to Database.
  doctrine:ensure-production-settings  Verify that Doctrine is properly configured for a production environment.
  doctrine:generate:crud               Generates a CRUD based on a Doctrine entity
  doctrine:generate:entities           Generates entity classes and method stubs from your mapping information
  doctrine:generate:entity             Generates a new Doctrine entity inside a bundle
  doctrine:generate:form               Generates a form type class based on a Doctrine entity
  doctrine:mapping:convert             Convert mapping information between supported formats.
  doctrine:mapping:import              Imports mapping information from an existing database
  doctrine:mapping:info                
  doctrine:query:dql                   Executes arbitrary DQL directly from the command line.
  doctrine:query:sql                   Executes arbitrary SQL directly from the command line.
  doctrine:schema:create               Executes (or dumps) the SQL needed to generate the database schema
  doctrine:schema:drop                 Executes (or dumps) the SQL needed to drop the current database schema
  doctrine:schema:update               Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata.
  doctrine:schema:validate             Validate the mapping files.
 fos
  fos:elastica:populate                Populates search indexes from providers
  fos:elastica:reset                   Reset search indexes
  fos:elastica:search                  Searches documents in a given type and index
  fos:js-routing:debug                 Displays currently exposed routes for an application
  fos:js-routing:dump                  Dumps exposed routes to the filesystem
  fos:user:activate                    Activate a user
  fos:user:change-password             Change the password of a user.
  fos:user:create                      Create a user.
  fos:user:deactivate                  Deactivate a user
  fos:user:demote                      Demote a user by removing a role
  fos:user:promote                     Promotes a user by adding a role
 generate
  generate:bundle                      Generates a bundle
  generate:command                     Generates a console command
  generate:controller                  Generates a controller
  generate:doctrine:crud               Generates a CRUD based on a Doctrine entity
  generate:doctrine:entities           Generates entity classes and method stubs from your mapping information
  generate:doctrine:entity             Generates a new Doctrine entity inside a bundle
  generate:doctrine:form               Generates a form type class based on a Doctrine entity
 init
  init:jms-secure-random               
 lint
  lint:twig                            Lints a template and outputs encountered errors
  lint:yaml                            Lints a file and outputs encountered errors
 mopa
  mopa:bootstrap:install:font          Install font to web/fonts
  mopa:bootstrap:symlink:less          Check and if possible install symlink to 
  mopa:bootstrap:symlink:sass          Check and if possible install symlink to -sass
 orm
  orm:convert:mapping                  Convert mapping information between supported formats.
 router
  router:debug                         Displays current routes for an application
  router:dump-apache                   [DEPRECATED] Dumps all routes as Apache rewrite rules
  router:match                         Helps debug routes by simulating a path info match
 security
  security:check                       Checks security issues in your project dependencies
  security:encode-password             Encodes a password.
 server
  server:run                           Runs PHP built-in web server
  server:start                         Starts PHP built-in web server in the background
  server:status                        Outputs the status of the built-in web server for the given address
  server:stop                          Stops PHP's built-in web server that was started with the server:start command
 swiftmailer
  swiftmailer:debug                    Displays current mailers for an application
  swiftmailer:email:send               Send simple email message
  swiftmailer:spool:send               Sends emails from the spool
 translation
  translation:debug                    Displays translation messages information
  translation:update                   Updates the translation file
 twig
  twig:debug                           Shows a list of twig functions, filters, globals and tests
  twig:lint                            Lints a template and outputs encountered errors
 yaml
  yaml:lint                            Lints a file and outputs encountered errors

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *