symfony new symfony --version="6.4.*" --webapp
symfony new symfony --version="7.0.*" --webapp
echo 'DATABASE_URL="mysql://philippe:mowgli@127.0.0.1:3306/mydb?serverVersion=8.0.32&charset=utf8mb4"' >> .env
php bin/console cache:clear
php bin/console make:entity
php bin/console make:migration
php bin/console doctrine:migrations:migrate
php bin/console make:crud
php bin/console cache:clear
php bin/console make:entity
php bin/console make:migration
php bin/console doctrine:migrations:migrate
php bin/console make:form
Symfony 6.4.2 (env: dev, debug: true) | |
Usage: | |
command [options] [arguments] | |
Options: | |
-h, --help | Display help for the given command. When no command is given display help for the list command |
-q, --quiet | Do not output any message |
-V, --version | Display this application version |
--ansi|--no-ansi | |
-n, --no-interaction | |
-e, --env=ENV | The Environment name. [default: "dev"] |
--no-debug | Switch off debug mode. |
--profile | Enables profiling (requires debug). |
-v|vv|vvv, --verbose | |
Available commands: | |
php bin/console about | Display information about the current project |
php bin/console completion | Dump the shell completion script |
php bin/console help | Display help for a command |
php bin/console list | List commands |
php bin/console asset-map | |
php bin/console asset-map:compile | Compile all mapped assets and writes them to the final public output directory |
php bin/console assets | |
php bin/console assets:install | Install bundle's web assets under a public directory |
php bin/console cache | |
php bin/console cache:clear | Clear the cache |
php bin/console cache:pool:clear | Clear cache pools |
php bin/console cache:pool:delete | Delete an item from a cache pool |
php bin/console cache:pool:invalidate-tags | Invalidate cache tags for all or a specific pool |
php bin/console cache:pool:list | List available cache pools |
php bin/console cache:pool:prune | Prune cache pools |
php bin/console cache:warmup | Warm up an empty cache |
php bin/console config | |
php bin/console config:dump-reference | Dump the default configuration for an extension |
php bin/console dbal | |
php bin/console dbal:run-sql | Executes arbitrary SQL directly from the command line. |
php bin/console debug | |
php bin/console debug:asset-map | Output all mapped assets |
php bin/console debug:autowiring | List classes/interfaces you can use for autowiring |
php bin/console debug:config | Dump the current configuration for an extension |
php bin/console debug:container | Display current services for an application |
php bin/console debug:dotenv | List all dotenv files with variables and values |
php bin/console debug:event-dispatcher | Display configured listeners for an application |
php bin/console debug:firewall | Display information about your security firewall(s) |
php bin/console debug:form | Display form type information |
php bin/console debug:messenger | List messages you can dispatch using the message buses |
php bin/console debug:router | Display current routes for an application |
php bin/console debug:serializer | Display serialization information for classes |
php bin/console debug:translation | Display translation messages information |
php bin/console debug:twig | Show a list of twig functions, filters, globals and tests |
php bin/console debug:validator | Display validation constraints for classes |
php bin/console doctrine | |
php bin/console doctrine:cache:clear-collection-region | Clear a second-level cache collection region |
php bin/console doctrine:cache:clear-entity-region | Clear a second-level cache entity region |
php bin/console doctrine:cache:clear-metadata | Clear all metadata cache of the various cache drivers |
php bin/console doctrine:cache:clear-query | Clear all query cache of the various cache drivers |
php bin/console doctrine:cache:clear-query-region | Clear a second-level cache query region |
php bin/console doctrine:cache:clear-result | Clear all result cache of the various cache drivers |
php bin/console doctrine:database:create | Creates the configured database |
php bin/console doctrine:database:drop | Drops the configured database |
php bin/console doctrine:ensure-production-settings | Verify that Doctrine is properly configured for a production environment |
php bin/console doctrine:mapping:convert | [orm:convert:mapping] Convert mapping information between supported formats |
php bin/console doctrine:mapping:import | Imports mapping information from an existing database |
php bin/console doctrine:mapping:info | Show basic information about all mapped entities |
php bin/console doctrine:migrations:current | Outputs the current version |
php bin/console doctrine:migrations:diff | Generate a migration by comparing your current database to your mapping information. |
php bin/console doctrine:migrations:dump-schema | Dump the schema for your database to a migration. |
php bin/console doctrine:migrations:execute | Execute one or more migration versions up or down manually. |
php bin/console doctrine:migrations:generate | Generate a blank migration class. |
php bin/console doctrine:migrations:latest | Outputs the latest version |
php bin/console doctrine:migrations:list | Display a list of all available migrations and their status. |
php bin/console doctrine:migrations:migrate | Execute a migration to a specified version or the latest available version. |
php bin/console doctrine:migrations:rollup | Rollup migrations by deleting all tracked versions and insert the one version that exists. |
php bin/console doctrine:migrations:status | View the status of a set of migrations. |
php bin/console doctrine:migrations:sync-metadata-storage | |
php bin/console doctrine:migrations:up-to-date | Tells you if your schema is up-to-date. |
php bin/console doctrine:migrations:version | Manually add and delete migration versions from the version table. |
php bin/console doctrine:query:dql | Executes arbitrary DQL directly from the command line |
php bin/console doctrine:query:sql | Executes arbitrary SQL directly from the command line. |
php bin/console doctrine:schema:create | Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output |
php bin/console doctrine:schema:drop | Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output |
php bin/console doctrine:schema:update | Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata |
php bin/console doctrine:schema:validate | Validate the mapping files |
php bin/console importmap | |
php bin/console importmap:audit | Check for security vulnerability advisories for dependencies |
php bin/console importmap:install | Download all assets that should be downloaded |
php bin/console importmap:outdated | List outdated JavaScript packages and their latest versions |
php bin/console importmap:remove | Remove JavaScript packages |
php bin/console importmap:require | Require JavaScript packages |
php bin/console importmap:update | Update JavaScript packages to their latest versions |
php bin/console lint | |
php bin/console lint:container | Ensure that arguments injected into services match type declarations |
php bin/console lint:twig | Lint a Twig template and outputs encountered errors |
php bin/console lint:xliff | Lint an XLIFF file and outputs encountered errors |
php bin/console lint:yaml | Lint a YAML file and outputs encountered errors |
php bin/console mailer | |
php bin/console mailer:test | Test Mailer transports by sending an email |
php bin/console make | |
php bin/console make:auth | Create a Guard authenticator of different flavors |
php bin/console make:command | Create a new console command class |
php bin/console make:controller | Create a new controller class |
php bin/console make:crud | Create CRUD for Doctrine entity class |
php bin/console make:docker:database | Add a database container to your docker-compose.yaml file |
php bin/console make:entity | Create or update a Doctrine entity class, and optionally an API Platform resource |
php bin/console make:fixtures | Create a new class to load Doctrine fixtures |
php bin/console make:form | Create a new form class |
php bin/console make:listener | [make:subscriber] Creates a new event subscriber class or a new event listener class |
php bin/console make:message | Create a new message and handler |
php bin/console make:messenger-middleware | Create a new messenger middleware |
php bin/console make:migration | Create a new migration based on database changes |
php bin/console make:registration-form | Create a new registration form system |
php bin/console make:reset-password | Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle |
php bin/console make:security:form-login | Generate the code needed for the form_login authenticator |
php bin/console make:serializer:encoder | Create a new serializer encoder class |
php bin/console make:serializer:normalizer | Create a new serializer normalizer class |
php bin/console make:stimulus-controller | Create a new Stimulus controller |
php bin/console make:test | [make:unit-test|make:functional-test] Create a new test class |
php bin/console make:twig-component | Create a twig (or live) component |
php bin/console make:twig-extension | Create a new Twig extension with its runtime class |
php bin/console make:user | Create a new security user class |
php bin/console make:validator | Create a new validator and constraint class |
php bin/console make:voter | Create a new security voter class |
php bin/console messenger | |
php bin/console messenger:consume | Consume messages |
php bin/console messenger:failed:remove | Remove given messages from the failure transport |
php bin/console messenger:failed:retry | Retry one or more messages from the failure transport |
php bin/console messenger:failed:show | Show one or more messages from the failure transport |
php bin/console messenger:setup-transports | Prepare the required infrastructure for the transport |
php bin/console messenger:stats | Show the message count for one or more transports |
php bin/console messenger:stop-workers | Stop workers after their current message |
php bin/console router | |
php bin/console router:match | Help debug routes by simulating a path info match |
php bin/console secrets | |
php bin/console secrets:decrypt-to-local | Decrypt all secrets and stores them in the local vault |
php bin/console secrets:encrypt-from-local | Encrypt all local secrets to the vault |
php bin/console secrets:generate-keys | Generate new encryption keys |
php bin/console secrets:list | List all secrets |
php bin/console secrets:remove | Remove a secret from the vault |
php bin/console secrets:set | Set a secret in the vault |
php bin/console security | |
php bin/console security:hash-password | Hash a user password |
php bin/console server | |
php bin/console server:dump | Start a dump server that collects and displays dumps in a single place |
php bin/console server:log | Start a log server that displays logs in real time |
php bin/console translation | |
php bin/console translation:extract | Extract missing translations keys from code to translation files |
php bin/console translation:pull | Pull translations from a given provider. |
php bin/console translation:push | Push translations to a given provider. |
end of file