Symfony 3.4 CLI reference
- Available commands
-
assets
- assets:install - Installs bundles web assets under a public directory
-
cache
- cache:clear - Clears the cache
- cache:pool:clear - Clears cache pools
- cache:pool:prune - Prunes cache pools
- cache:warmup - Warms up an empty cache
-
config
- config:dump-reference - Dumps the default configuration for an extension
-
debug
- debug:config - Dumps the current configuration for an extension
- debug:container - Displays current services for an application
- debug:autowiring - Lists classes/interfaces you can use for autowiring
- debug:event-dispatcher - Displays configured listeners for an application
- debug:router - Displays current routes for an application
-
doctrine
- doctrine:cache:contains - Check if a cache entry exists
- doctrine:cache:delete - Delete a cache entry
- doctrine:cache:flush - Flush a given cache
- doctrine:cache:stats - Get stats on a given cache provider
- doctrine:migrations:diff - Generate a migration by comparing your current database to your mapping information.
- doctrine:migrations:execute - Execute a single migration version up or down manually.
- doctrine:migrations:generate - Generate a blank migration class.
- doctrine:migrations:latest - Outputs the latest version number
- doctrine:migrations:migrate - Execute a migration to a specified version or the latest available version.
- doctrine:migrations:status - View the status of a set of migrations.
- doctrine:migrations:version - Manually add and delete migration versions from the version table.
- doctrine:database:create - Creates the configured database
- doctrine:database:drop - Drops the configured database
- doctrine:generate:entities - Generates entity classes and method stubs from your mapping information
- doctrine:mapping:import - Imports mapping information from an existing database
- 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:cache:clear-collection-region - Clear a second-level cache collection region.
- doctrine:mapping:convert - Convert mapping information between supported formats.
- 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:ensure-production-settings - Verify that Doctrine is properly configured for a production environment.
- doctrine:cache:clear-entity-region - Clear a second-level cache entity region.
- doctrine:database:import - Import SQL file(s) directly to Database.
- doctrine:mapping:info -
- doctrine:cache:clear-query-region - Clear a second-level cache query region.
- doctrine:query:dql - Executes arbitrary DQL directly from the command line.
- doctrine:query:sql - Executes arbitrary SQL directly from the command line.
- 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.
-
lint
- lint:yaml - Lints a file and outputs encountered errors
-
make
- make:auth - Creates a Guard authenticator of different flavors
- make:command - Creates a new console command class
- make:controller - Creates a new controller class
- make:crud - Creates CRUD for Doctrine entity class
- make:docker:database - Adds a database container to your docker-compose.yaml file
- make:entity - Creates or updates a Doctrine entity class, and optionally an API Platform resource
- make:fixtures - Creates a new class to load Doctrine fixtures
- make:form - Creates a new form class
- make:message - Creates a new message and handler
- make:messenger-middleware - Creates a new messenger middleware
- make:registration-form - Creates a new registration form system
- make:reset-password - Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle
- make:serializer:encoder - Creates a new serializer encoder class
- make:serializer:normalizer - Creates a new serializer normalizer class
- make:subscriber - Creates a new event subscriber class
- make:twig-extension - Creates a new Twig extension class
- make:test - Creates a new test class
- make:validator - Creates a new validator and constraint class
- make:voter - Creates a new security voter class
- make:user - Creates a new security user class
- make:migration - Creates a new migration based on database changes
-
router
- router:match - Helps debug routes by simulating a path info match