Symfony 6.1 CLI reference
-
Available commands
- help - Display help for a command
- list - List commands
- _complete - Internal command to provide shell completion suggestions
- completion - Dump the shell completion script
- about - Display information about the current project
-
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:invalidate-tags - Invalidate cache tags for all or a specific pool
- 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:dotenv - Lists all dotenv files with variables and values
- debug:event-dispatcher - Display configured listeners for an application
- debug:messenger - List messages you can dispatch using the message buses
- debug:router - Display current routes for an application
- debug:translation - Display translation messages information
- debug:validator - Display validation constraints for classes
- debug:form - Display form type information
- debug:twig - Show a list of twig functions, filters, globals and tests
- debug:firewall - Display information about your security firewall(s)
-
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:cache:clear-metadata - Clear all metadata cache of the various cache drivers
- doctrine:cache:clear-query - Clear all query cache of the various cache drivers
- doctrine:cache:clear-result - Clear all result cache of the various cache drivers
- doctrine:cache:clear-collection-region - Clear a second-level cache collection region
- doctrine:schema:create - Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output
- doctrine:schema:drop - Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output
- doctrine:cache:clear-entity-region - Clear a second-level cache entity region
- doctrine:mapping:info - Show basic information about all mapped entities
- 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: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 YAML file and outputs encountered errors
- lint:twig - Lint a Twig template and outputs encountered errors
-
make
- make:auth - Creates a Guard authenticator of different flavors
- make:command - Creates a new console command class
- make:twig-component - Creates a twig (or live) component
- 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 with its runtime 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
- make:stimulus-controller - Creates a new Stimulus controller
- make:security:form-login - Generate the code needed for the form_login authenticator
-
messenger
- messenger:consume - Consume messages
- messenger:setup-transports - Prepare the required infrastructure for the transport
- messenger:stop-workers - Stop workers after their current message
- messenger:failed:retry - Retry one or more messages from the failure transport
- messenger:failed:show - Show one or more messages from the failure transport
- messenger:failed:remove - Remove given messages from the failure transport
-
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:hash-password - Hash a user 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:extract - Extract missing translations keys from code to translation files.
- translation:pull - Pull translations from a given provider.
- translation:push - Push translations to a given provider.