Professional Documents
Culture Documents
CMD1
CMD1
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 Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switch off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2
for more verbose output and 3 for debug
Available commands:
about Display information about the current
project
completion Dump the shell completion script
help Display help for a command
list List 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:delete Delete an item from a cache pool
cache:pool:invalidate-tags Invalidate cache tags for all or a
specific pool
cache:pool:list List available cache pools
cache:pool:prune Prune 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:autowiring List classes/interfaces you can use
for autowiring
debug:config Dump the current configuration for an
extension
debug:container Display current services for an
application
debug:dotenv Lists all dotenv files with variables
and values
debug:event-dispatcher Display configured listeners for an
application
debug:firewall Display information about your
security firewall(s)
debug:form Display form type information
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:twig Show a list of twig functions,
filters, globals and tests
debug:validator Display validation constraints for
classes
doctrine
doctrine:cache:clear-collection-region Clear a second-level cache collection
region
doctrine:cache:clear-entity-region Clear a second-level cache entity
region
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-query-region Clear a second-level cache query
region
doctrine:cache:clear-result Clear all result cache of the various
cache drivers
doctrine:database:create Creates the configured database
doctrine:database:drop Drops the configured database
doctrine:ensure-production-settings Verify that Doctrine is properly
configured for a production environment
doctrine:mapping:convert [orm:convert:mapping] Convert mapping
information between supported formats
doctrine:mapping:import Imports mapping information from an
existing database
doctrine:mapping:info Show basic information about all
mapped entities
doctrine:migrations:current Outputs the current version
doctrine:migrations:diff Generate a migration by comparing your
current database to your mapping information.
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:list Display a list of all available
migrations and their status.
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:sync-metadata-storage Ensures that the metadata storage is
at the latest version.
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.
doctrine:query:dql Executes arbitrary DQL directly from
the command line
doctrine:query:sql Executes arbitrary SQL directly from
the command line.
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: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:container Ensure that arguments injected into
services match type declarations
lint:twig Lint a Twig template and outputs
encountered errors
lint:xliff Lint an XLIFF file and outputs
encountered errors
lint:yaml Lint a YAML 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:migration Creates a new migration based on
database changes
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:security:form-login Generate the code needed for the
form_login authenticator
make:serializer:encoder Creates a new serializer encoder class
make:serializer:normalizer Creates a new serializer normalizer
class
make:stimulus-controller Creates a new Stimulus controller
make:subscriber Creates a new event subscriber class
make:test [make:unit-test|make:functional-test]
Creates a new test class
make:twig-component Creates a twig (or live) component
make:twig-extension Creates a new Twig extension with its
runtime class
make:user Creates a new security user class
make:validator Creates a new validator and constraint
class
make:voter Creates a new security voter class
messenger
messenger:consume Consume messages
messenger:failed:remove Remove given messages from the failure
transport
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:setup-transports Prepare the required infrastructure
for the transport
messenger:stop-workers Stop workers after their current
message
router
router:match Help debug routes by simulating a path
info match
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
secrets:generate-keys Generate new encryption keys
secrets:list List all secrets
secrets:remove Remove a secret from the vault
secrets:set Set a secret in 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.
PS C:\Users\user\Desktop\Symfony\test6> symfony console doctrine:database:create
Created database `formation` for connection named default
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:entity
Add the ability to broadcast entity updates using Symfony UX Turbo? (yes/no) [no]:
> y
created: src/Entity/Institut.php
created: src/Repository/InstitutRepository.php
created: templates/broadcast/Institut.stream.html.twig
updated: src/Entity/Institut.php
Add another property? Enter the property name (or press <return> to stop adding
fields):
> dept
updated: src/Entity/Institut.php
Add another property? Enter the property name (or press <return> to stop adding
fields):
>
Success!
created: migrations/Version20240106141903.php
Success!
WARNING! You are about to execute a migration in database "formation" that could
result in schema changes and data loss. Are you sure you wish to continue? (yes/no)
[yes]:
>
Problem 1
- Root composer.json requires symfony/asset-mapper 6.1.*, found symfony/asset-
mapper[v6.3.0-BETA1, ..., 6.4.x-dev, v7.0.0-BETA1, ..., 7.1.x-dev] but it does not
match the constraint.
What's next?
Some files have been created and/or updated to configure your new packages.
Please review, edit and commit them: these files are yours.
Do you want to generate tests for the controller?. [Experimental] (yes/no) [no]:
> no
created: src/Controller/InstitutController.php
created: src/Form/InstitutType.php
created: templates/institut/_delete_form.html.twig
created: templates/institut/_form.html.twig
created: templates/institut/edit.html.twig
created: templates/institut/index.html.twig
created: templates/institut/new.html.twig
created: templates/institut/show.html.twig
Success!
[WARNING] run "symfony.exe server:ca:install" first if you want to run the web
server with TLS support, or us
e "--p12" or "--no-tls" to avoid this warning
http://127.0.0.1:8000
Shutting down!
Add the ability to broadcast entity updates using Symfony UX Turbo? (yes/no) [no]:
> no
created: src/Entity/Apprenant.php
created: src/Repository/ApprenantRepository.php
updated: src/Entity/Apprenant.php
Add another property? Enter the property name (or press <return> to stop adding
fields):
> prenomapp
updated: src/Entity/Apprenant.php
Add another property? Enter the property name (or press <return> to stop adding
fields):
> adresse
Add another property? Enter the property name (or press <return> to stop adding
fields):
> instit
OneToMany Each Apprenant can relate to (can have) many Institut objects.
Each Institut relates to (has) one Apprenant.
ManyToMany Each Apprenant can relate to (can have) many Institut objects.
Each Institut can also relate to (can also have) many Apprenant
objects.
Do you want to add a new property to Institut so that you can access/update
Apprenant objects from it - e.g. $institut->getApprenants()? (yes/no) [yes]:
> n
updated: src/Entity/Apprenant.php
Add another property? Enter the property name (or press <return> to stop adding
fields):
> error sending signal interrupt not supported by windows
PS C:\Users\user\Desktop\Symfony\test6> symfony console make:migration
make:migration