about
Display information about the current project
about
Cheatsheet for Symfony's commands.
about Display information about the current project
about
asset-map:compile Compile all mapped assets and writes them to the final public output directory
asset-map:compile
assets:install Install bundle's web assets under a public directory
assets:install [--symlink] [--relative] [--no-cleanup] [--] [<target>]
| Nom | Description |
|---|---|
target | The target directory |
cache:clear Clear the cache
cache:clear [--no-warmup] [--no-optional-warmers]
cache:pool:clear Clear cache pools
cache:pool:clear [--all] [--exclude EXCLUDE] [--] [<pools>...]
| Nom | Description |
|---|---|
pools | A list of cache pools or cache pool clearers |
cache:pool:delete Delete an item from a cache pool
cache:pool:delete <pool> <key>
| Nom | Description |
|---|---|
pool | The cache pool from which to delete an item |
key | The cache key to delete from the pool |
cache:pool:invalidate-tags Invalidate cache tags for all or a specific pool
cache:pool:invalidate-tags [-p|--pool POOL] [--] <tags>...
| Nom | Description |
|---|---|
tags | The tags to invalidate |
cache:pool:list List available cache pools
cache:pool:list
cache:pool:prune Prune cache pools
cache:pool:prune
cache:warmup Warm up an empty cache
cache:warmup [--no-optional-warmers]
completion Dump the shell completion script
completion [--debug] [--] [<shell>]
| Nom | Description |
|---|---|
shell | The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given |
config:dump-reference Dump the default configuration for an extension
config:dump-reference [--format FORMAT] [--] [<name> [<path>]]
| Nom | Description |
|---|---|
name | The Bundle name or the extension alias |
path | The configuration option path |
dbal:run-sql Executes arbitrary SQL directly from the command line.
dbal:run-sql [--connection CONNECTION] [--depth DEPTH] [--force-fetch] [--] <sql>
| Nom | Description |
|---|---|
sql | The SQL statement to execute. |
debug:asset-map Output all mapped assets
debug:asset-map [--ext EXT] [--full] [--vendor|--no-vendor] [--] [<name>]
| Nom | Description |
|---|---|
name | An asset name (or a path) to search for (e.g. "app") |
debug:autowiring List classes/interfaces you can use for autowiring
debug:autowiring [--all] [--] [<search>]
| Nom | Description |
|---|---|
search | A search filter |
debug:config Dump the current configuration for an extension
debug:config [--resolve-env] [--format FORMAT] [--] [<name> [<path>]]
| Nom | Description |
|---|---|
name | The bundle name or the extension alias |
path | The configuration option path |
debug:container Display current services for an application
debug:container [--show-arguments] [--show-hidden] [--tag TAG] [--tags] [--parameter PARAMETER] [--parameters] [--types] [--env-var ENV-VAR] [--env-vars] [--format FORMAT] [--raw] [--deprecations] [--] [<name>]
| Nom | Description |
|---|---|
name | A service name (foo) |
debug:dotenv List all dotenv files with variables and values
debug:dotenv [<filter>]
| Nom | Description |
|---|---|
filter | The name of an environment variable or a filter. |
debug:event-dispatcher Display configured listeners for an application
debug:event-dispatcher [--dispatcher DISPATCHER] [--format FORMAT] [--raw] [--] [<event>]
| Nom | Description |
|---|---|
event | An event name or a part of the event name |
debug:firewall Lazy command
debug:form Display form type information
debug:form [--show-deprecated] [--format FORMAT] [--] [<class> [<option>]]
| Nom | Description |
|---|---|
class | The form type class |
option | The form type option |
debug:router Display current routes for an application
debug:router [--show-controllers] [--show-aliases] [--format FORMAT] [--raw] [--] [<name>]
| Nom | Description |
|---|---|
name | A route name |
debug:translation Display translation messages information
debug:translation [--domain [DOMAIN]] [--only-missing] [--only-unused] [--all] [--] <locale> [<bundle>]
| Nom | Description |
|---|---|
locale | The locale |
bundle | The bundle name or directory where to load the messages |
debug:twig Show a list of twig functions, filters, globals and tests
debug:twig [--filter FILTER] [--format FORMAT] [--] [<name>]
| Nom | Description |
|---|---|
name | The template name |
debug:twig-component Display components and them usages for an application
debug:twig-component [<name>]
| Nom | Description |
|---|---|
name | A component name or part of the component name |
debug:validator Display validation constraints for classes
debug:validator [--show-all] [--] <class>
| Nom | Description |
|---|---|
class | A fully qualified class name or a path |
doctrine:cache:clear-collection-region Clear a second-level cache collection region
doctrine:cache:clear-collection-region [--em EM] [--all] [--flush] [--] [<owner-class> [<association> [<owner-id>]]]
| Nom | Description |
|---|---|
owner-class | The owner entity name. |
association | The association collection name. |
owner-id | The owner identifier. |
doctrine:cache:clear-entity-region Clear a second-level cache entity region
doctrine:cache:clear-entity-region [--em EM] [--all] [--flush] [--] [<entity-class> [<entity-id>]]
| Nom | Description |
|---|---|
entity-class | The entity name. |
entity-id | The entity identifier. |
doctrine:cache:clear-metadata Clear all metadata cache of the various cache drivers
doctrine:cache:clear-metadata [--em EM] [--flush]
doctrine:cache:clear-query Clear all query cache of the various cache drivers
doctrine:cache:clear-query [--em EM]
doctrine:cache:clear-query-region Clear a second-level cache query region
doctrine:cache:clear-query-region [--em EM] [--all] [--flush] [--] [<region-name>]
| Nom | Description |
|---|---|
region-name | The query region to clear. |
doctrine:cache:clear-result Clear all result cache of the various cache drivers
doctrine:cache:clear-result [--em EM] [--flush]
doctrine:database:create Creates the configured database
doctrine:database:create [-c|--connection [CONNECTION]] [--if-not-exists]
doctrine:database:drop Drops the configured database
doctrine:database:drop [-c|--connection [CONNECTION]] [--if-exists] [-f|--force]
doctrine:fixtures:load Load data fixtures to your database
doctrine:fixtures:load [--append] [--group GROUP] [--em EM] [--purger PURGER] [--purge-exclusions PURGE-EXCLUSIONS] [--purge-with-truncate]
doctrine:mapping:info Show basic information about all mapped entities
doctrine:mapping:info [--em EM]
doctrine:migrations:current Outputs the current version
doctrine:migrations:current [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:diff Generate a migration by comparing your current database to your mapping information.
doctrine:migrations:diff [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--namespace NAMESPACE] [--filter-expression FILTER-EXPRESSION] [--formatted] [--line-length LINE-LENGTH] [--check-database-platform [CHECK-DATABASE-PLATFORM]] [--allow-empty-diff] [--from-empty-schema]
doctrine:migrations:dump-schema Dump the schema for your database to a migration.
doctrine:migrations:dump-schema [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--formatted] [--namespace NAMESPACE] [--filter-tables FILTER-TABLES] [--line-length [LINE-LENGTH]]
doctrine:migrations:execute Execute one or more migration versions up or down manually.
doctrine:migrations:execute [--write-sql [WRITE-SQL]] [--dry-run] [--up] [--down] [--query-time] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] <versions>...
| Nom | Description |
|---|---|
versions | The versions to execute. |
doctrine:migrations:generate Generate a blank migration class.
doctrine:migrations:generate [--namespace NAMESPACE] [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:latest Outputs the latest version
doctrine:migrations:latest [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:list Display a list of all available migrations and their status.
doctrine:migrations:list [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:migrate Execute a migration to a specified version or the latest available version.
doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--no-all-or-nothing] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]
| Nom | Description |
|---|---|
version | The version FQCN or alias (first, prev, next, latest) to migrate to. |
doctrine:migrations:rollup Rollup migrations by deleting all tracked versions and insert the one version that exists.
doctrine:migrations:rollup [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:status View the status of a set of migrations.
doctrine:migrations:status [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:sync-metadata-storage Ensures that the metadata storage is at the latest version.
doctrine:migrations:sync-metadata-storage [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:up-to-date Tells you if your schema is up-to-date.
doctrine:migrations:up-to-date [-u|--fail-on-unregistered] [-l|--list-migrations] [--configuration CONFIGURATION] [--em EM] [--conn CONN]
doctrine:migrations:version Manually add and delete migration versions from the version table.
doctrine:migrations:version [--add] [--delete] [--all] [--range-from [RANGE-FROM]] [--range-to [RANGE-TO]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]
| Nom | Description |
|---|---|
version | The version to add or delete. |
doctrine:query:dql Executes arbitrary DQL directly from the command line
doctrine:query:dql [--em EM] [--hydrate HYDRATE] [--first-result FIRST-RESULT] [--max-result MAX-RESULT] [--depth DEPTH] [--show-sql] [--] <dql>
| Nom | Description |
|---|---|
dql | The DQL to execute. |
doctrine:query:sql Executes arbitrary SQL directly from the command line.
doctrine:query:sql [--connection CONNECTION] [--depth DEPTH] [--force-fetch] [--] <sql>
| Nom | Description |
|---|---|
sql | The SQL statement to execute. |
doctrine:schema:create Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output
doctrine:schema:create [--em EM] [--dump-sql]
doctrine:schema:drop Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output
doctrine:schema:drop [--em EM] [--dump-sql] [-f|--force] [--full-database]
doctrine:schema:update Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata
doctrine:schema:update [--em EM] [--complete] [--dump-sql] [-f|--force]
doctrine:schema:validate Validate the mapping files
doctrine:schema:validate [--em EM] [--skip-mapping] [--skip-sync] [--skip-property-types]
help Display help for a command
help [--format FORMAT] [--raw] [--] [<command_name>]
| Nom | Description |
|---|---|
command_name | The command name |
importmap:audit Check for security vulnerability advisories for dependencies
importmap:audit [--format FORMAT]
importmap:install Download all assets that should be downloaded
importmap:install
importmap:outdated List outdated JavaScript packages and their latest versions
importmap:outdated [--format FORMAT] [--] [<packages>...]
| Nom | Description |
|---|---|
packages | A list of packages to check |
importmap:remove Remove JavaScript packages
importmap:remove <packages>...
| Nom | Description |
|---|---|
packages | The packages to remove |
importmap:require Require JavaScript packages
importmap:require [--entrypoint] [--path PATH] [--] <packages>...
| Nom | Description |
|---|---|
packages | The packages to add |
importmap:update Update JavaScript packages to their latest versions
importmap:update [<packages>...]
| Nom | Description |
|---|---|
packages | List of packages' names |
lint:container Ensure that arguments injected into services match type declarations
lint:container [--resolve-env-vars]
lint:translations Lint translations files syntax and outputs encountered errors
lint:translations [--locale LOCALE]
lint:twig Lint a Twig template and outputs encountered errors
lint:twig [--format FORMAT] [--show-deprecations] [--excludes [EXCLUDES]] [--] [<filename>...]
| Nom | Description |
|---|---|
filename | A file, a directory or "-" for reading from STDIN |
lint:xliff Lint an XLIFF file and outputs encountered errors
lint:xliff [--format FORMAT] [--] [<filename>...]
| Nom | Description |
|---|---|
filename | A file, a directory or "-" for reading from STDIN |
lint:yaml Lint a YAML file and outputs encountered errors
lint:yaml [--format FORMAT] [--exclude EXCLUDE] [--parse-tags|--no-parse-tags] [--] [<filename>...]
| Nom | Description |
|---|---|
filename | A file, a directory or "-" for reading from STDIN |
list List commands
list [--raw] [--format FORMAT] [--short] [--] [<namespace>]
| Nom | Description |
|---|---|
namespace | The namespace name |
mailer:test Test Mailer transports by sending an email
mailer:test [--from [FROM]] [--subject [SUBJECT]] [--body [BODY]] [--transport [TRANSPORT]] [--] <to>
| Nom | Description |
|---|---|
to | The recipient of the message |
make:auth Create a Guard authenticator of different flavors
make:auth
make:command Create a new console command class
make:command [<name>]
| Nom | Description |
|---|---|
name | Choose a command name (e.g. <fg=yellow>app:tiny-popsicle</>) |
make:controller Create a new controller class
make:controller [--no-template] [-i|--invokable] [--with-tests] [--] [<controller-class>]
| Nom | Description |
|---|---|
controller-class | Choose a name for your controller class (e.g. <fg=yellow>DeliciousPizzaController</>) |
make:crud Create CRUD for Doctrine entity class
make:crud [--with-tests] [--] [<entity-class>]
| Nom | Description |
|---|---|
entity-class | The class name of the entity to create CRUD (e.g. <fg=yellow>GentlePopsicle</>) |
make:docker:database Add a database container to your compose.yaml file
make:docker:database
make:entity Create or update a Doctrine entity class, and optionally an API Platform resource
make:entity [-a|--api-resource] [-b|--broadcast] [--regenerate] [--overwrite] [--with-uuid] [--with-ulid] [--] [<name>]
| Nom | Description |
|---|---|
name | Class name of the entity to create or update (e.g. <fg=yellow>VictoriousPopsicle</>) |
make:fixtures Create a new class to load Doctrine fixtures
make:fixtures [<fixtures-class>]
| Nom | Description |
|---|---|
fixtures-class | The class name of the fixtures to create (e.g. <fg=yellow>AppFixtures</>) |
make:form Create a new form class
make:form [<name> [<bound-class>]]
| Nom | Description |
|---|---|
name | The name of the form class (e.g. <fg=yellow>VictoriousPuppyType</>) |
bound-class | The name of Entity or fully qualified model class name that the new form will be bound to (empty for none) |
make:listener Creates a new event subscriber class or a new event listener class
make:listener [<name> [<event>]]
| Nom | Description |
|---|---|
name | Choose a class name for your event listener or subscriber (e.g. <fg=yellow>ExceptionListener</> or <fg=yellow>ExceptionSubscriber</>) |
event | What event do you want to listen to? |
make:message Create a new message and handler
make:message [<name>]
| Nom | Description |
|---|---|
name | The name of the message class (e.g. <fg=yellow>SendEmailMessage</>) |
make:messenger-middleware Create a new messenger middleware
make:messenger-middleware [<name>]
| Nom | Description |
|---|---|
name | The name of the middleware class (e.g. <fg=yellow>CustomMiddleware</>) |
make:migration Create a new migration based on database changes
make:migration [--formatted] [--configuration [CONFIGURATION]]
make:registration-form Create a new registration form system
make:registration-form [--with-tests]
make:reset-password Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle
make:reset-password [--with-uuid] [--with-ulid] [--with-tests]
make:schedule Create a scheduler component
make:schedule
make:security:custom Create a custom security authenticator.
make:security:custom
make:security:form-login Generate the code needed for the form_login authenticator
make:security:form-login [--with-tests]
make:serializer:encoder Create a new serializer encoder class
make:serializer:encoder [<name> [<format>]]
| Nom | Description |
|---|---|
name | Choose a class name for your encoder (e.g. <fg=yellow>YamlEncoder</>) |
format | Pick your format name (e.g. <fg=yellow>yaml</>) |
make:serializer:normalizer Create a new serializer normalizer class
make:serializer:normalizer [<name>]
| Nom | Description |
|---|---|
name | Choose a class name for your normalizer (e.g. <fg=yellow>UserNormalizer</>) |
make:stimulus-controller Create a new Stimulus controller
make:stimulus-controller <name>
| Nom | Description |
|---|---|
name | The name of the Stimulus controller (e.g. <fg=yellow>hello</>) |
make:test Create a new test class
make:test [<type> [<name>]]
| Nom | Description |
|---|---|
type | The type of test: <fg=yellow>TestCase</> (basic PHPUnit tests), <fg=yellow>KernelTestCase</> (basic tests that have access to Symfony services), <fg=yellow>WebTestCase</> (to run browser-like scenarios, but that don't execute JavaScript code), <fg=yellow>ApiTestCase</> (to run API-oriented scenarios), <fg=yellow>PantherTestCase</> (to run e2e scenarios, using a real-browser or HTTP client and a real web server) |
name | The name of the test class (e.g. <fg=yellow>BlogPostTest</>) |
make:twig-component Create a twig (or live) component
make:twig-component [--live] [--] [<name>]
| Nom | Description |
|---|---|
name | The name of your twig component (ie <fg=yellow>Notification</>) |
make:twig-extension Create a new Twig extension with its runtime class
make:twig-extension [<name>]
| Nom | Description |
|---|---|
name | The name of the Twig extension class (e.g. <fg=yellow>AppExtension</>) |
make:user Create a new security user class
make:user [--is-entity] [--identity-property-name IDENTITY-PROPERTY-NAME] [--with-password] [--with-uuid] [--with-ulid] [--] [<name>]
| Nom | Description |
|---|---|
name | The name of the security user class (e.g. <fg=yellow>User</>) |
make:validator Create a new validator and constraint class
make:validator [<name>]
| Nom | Description |
|---|---|
name | The name of the validator class (e.g. <fg=yellow>EnabledValidator</>) |
make:voter Create a new security voter class
make:voter [<name>]
| Nom | Description |
|---|---|
name | The name of the security voter class (e.g. <fg=yellow>BlogPostVoter</>) |
make:webhook Create a new Webhook
make:webhook [<name>]
| Nom | Description |
|---|---|
name | Name of the webhook to create (e.g. <fg=yellow>github, stripe, ...</>) |
router:match Help debug routes by simulating a path info match
router:match [--method METHOD] [--scheme SCHEME] [--host HOST] [--] <path_info>
| Nom | Description |
|---|---|
path_info | A path info |
sass:build Builds the Sass assets
sass:build [-w|--watch]
secrets:decrypt-to-local Decrypt all secrets and stores them in the local vault
secrets:decrypt-to-local [-f|--force]
secrets:encrypt-from-local Encrypt all local secrets to the vault
secrets:encrypt-from-local
secrets:generate-keys Generate new encryption keys
secrets:generate-keys [-l|--local] [-r|--rotate]
secrets:list List all secrets
secrets:list [-r|--reveal]
secrets:remove Remove a secret from the vault
secrets:remove [-l|--local] [--] <name>
| Nom | Description |
|---|---|
name | The name of the secret |
secrets:reveal Reveal the value of a secret
secrets:reveal <name>
| Nom | Description |
|---|---|
name | The name of the secret to reveal |
secrets:set Set a secret in the vault
secrets:set [-l|--local] [-r|--random [RANDOM]] [--] <name> [<file>]
| Nom | Description |
|---|---|
name | The name of the secret |
file | A file where to read the secret from or "-" for reading from STDIN |
security:hash-password Hash a user password
security:hash-password [--empty-salt] [--] [<password> [<user-class>]]
| Nom | Description |
|---|---|
password | The plain password to hash. |
user-class | The User entity class path associated with the hasher used to hash the password. |
server:dump Start a dump server that collects and displays dumps in a single place
server:dump [--format FORMAT]
server:log Start a log server that displays logs in real time
server:log [--host HOST] [--format FORMAT] [--date-format DATE-FORMAT] [--filter FILTER]
translation:extract Extract missing translations keys from code to translation files
translation:extract [--prefix [PREFIX]] [--no-fill] [--format [FORMAT]] [--dump-messages] [--force] [--clean] [--domain [DOMAIN]] [--sort [SORT]] [--as-tree [AS-TREE]] [--] <locale> [<bundle>]
| Nom | Description |
|---|---|
locale | The locale |
bundle | The bundle name or directory where to load the messages |
translation:pull Pull translations from a given provider.
translation:pull [--force] [--intl-icu] [--domains [DOMAINS]] [--locales [LOCALES]] [--format [FORMAT]] [--as-tree [AS-TREE]] [--] <provider>
| Nom | Description |
|---|---|
provider | The provider to pull translations from. |
translation:push Push translations to a given provider.
translation:push [--force] [--delete-missing] [--domains [DOMAINS]] [--locales [LOCALES]] [--] <provider>
| Nom | Description |
|---|---|
provider | The provider to push translations to. |
ux:icons:import Import icon(s) from iconify.design
ux:icons:import <names>...
| Nom | Description |
|---|---|
names | Icon name from ux.symfony.com/icons (e.g. "mdi:home") |
ux:icons:lock Scan project and import icon(s) from iconify.design
ux:icons:lock [--force]
ux:icons:search Search icons and icon sets from ux.symfony.com
ux:icons:search <prefix> [<name>]
| Nom | Description |
|---|---|
prefix | Prefix or name of the icon set (ex: bootstrap, fa, tabler) |
name | Name of the icon (leave empty to search for sets) |
ux:icons:warm-cache Warm the icon cache
ux:icons:warm-cache