Symfony 4.4 CLI reference
- Available commands
-
assets
- assets:install - Install bundle's web assets under a public directory
-
cache
- cache:clear - Clear the cache
- cache:pool:clear - Clear cache pools
- cache:pool:prune - Prune cache pools
- cache:pool:delete - Delete an item from a cache pool
- cache:pool:list - List available cache pools
- cache:warmup - Warm up an empty cache
-
config
- config:dump-reference - Dump the default configuration for an extension
-
dbal
- dbal:run-sql - Executes arbitrary SQL directly from the command line.
-
debug
- debug:config - Dump the current configuration for an extension
- debug:container - Display current services for an application
- debug:autowiring - List classes/interfaces you can use for autowiring
- debug:event-dispatcher - Display configured listeners for an application
- debug:router - Display current routes for an application
- debug:translation - Display translation messages information
- debug:form - Display form type information
- debug:twig - Show a list of twig functions, filters, globals and tests
-
doctrine
- doctrine:database:create - Creates the configured database
- doctrine:database:drop - Drops the configured database
- doctrine:query:sql - Executes arbitrary SQL directly from the command line.
- doctrine:database:import - Import SQL file(s) directly to 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: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: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
- doctrine:mapping:import - Imports mapping information from an existing database
- doctrine:migrations:diff - Generate a migration by comparing your current database to your mapping information.
- doctrine:migrations:sync-metadata-storage - Ensures that the metadata storage is at the latest version.
- doctrine:migrations:list - Display a list of all available migrations and their status.
- doctrine:migrations:current - Outputs the current version
- doctrine:migrations:dump-schema - Dump the schema for your database to a migration.
- doctrine:migrations:execute - Execute one or more migration versions up or down manually.
- doctrine:migrations:generate - Generate a blank migration class.
- doctrine:migrations:latest - Outputs the latest version
- doctrine:migrations:migrate - Execute a migration to a specified version or the latest available version.
- doctrine:migrations:rollup - Rollup migrations by deleting all tracked versions and insert the one version that exists.
- doctrine:migrations:status - View the status of a set of migrations.
- doctrine:migrations:up-to-date - Tells you if your schema is up-to-date.
- doctrine:migrations:version - Manually add and delete migration versions from the version table.
-
lint
- lint:container - Ensure that arguments injected into services match type declarations
- lint:xliff - Lint an XLIFF file and outputs encountered errors
- lint:yaml - Lint a file and outputs encountered errors
- lint:twig - Lint a template 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 - Help debug routes by simulating a path info match
-
secrets
- secrets:set - Set a secret in the vault.
- secrets:remove - Remove a secret from the vault.
- secrets:generate-keys - Generate new encryption keys.
- secrets:list - List all secrets.
- secrets:decrypt-to-local - Decrypt all secrets and stores them in the local vault.
- secrets:encrypt-from-local - Encrypt all local secrets to the vault.
-
security
- security:encode-password - Encode a password.
-
server
- server:dump - Start a dump server that collects and displays dumps in a single place
- server:log - Start a log server that displays logs in real time
-
translation
- translation:update - Update the translation file