Symfony 指令集
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The environment name [default: "dev"]
--no-debug Switches 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 Displays information about the current project
help Displays help for a command
list Lists commands
Acl:
acl:set Sets ACL for objects
Assets:
assets:install Installs bundles web assets under a public directory(创建快捷)
Cache
cache:clear Clears the cache
cache:create-cache-class Generate the classes.php files
cache:pool:clear Clears cache pools
cache:warmup Warms up an empty cache
Config
config:dump-reference Dumps the default configuration for an extension
Debug
debug:config Dumps the current configuration for an extension
debug:container Displays current services for an application
debug:event-dispatcher Displays configured listeners for an application
debug:router Displays current routes for an application
debug:swiftmailer [swiftmailer:debug] Displays current mailers for an application
debug:translation Displays translation messages information
debug:twig Shows a list of twig functions, filters, globals and tests
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 Clears all metadata cache for an entity manager
doctrine:cache:clear-query Clears all query cache for an entity manager
doctrine:cache:clear-query-region Clear a second-level cache query region.
doctrine:cache:clear-result Clears result cache for an entity manager
doctrine:database:create Creates the configured database
doctrine:database:drop Drops the configured database
doctrine:database:import Import SQL file(s) directly to Database.
doctrine:ensure-production-settings Verify that Doctrine is properly configured for a production environment.
doctrine:generate:crud [generate:doctrine:crud] Generates a CRUD based on a Doctrine entity
doctrine:generate:entities [generate:doctrine:entities] Generates entity classes and method stubs from your mapping information
doctrine:generate:entity [generate:doctrine:entity] Generates a new Doctrine entity inside a bundle
doctrine:generate:form [generate:doctrine:form] Generates a form type class based on a Doctrine entity
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
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 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: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.
Fos
fos:js-routing:debug Displays currently exposed routes for an application
fos:js-routing:dump Dumps exposed routes to the filesystem
fos:user:activate Activate a user
fos:user:change-password Change the password of a user.
fos:user:create Create a user.
fos:user:deactivate Deactivate a user
fos:user:demote Demote a user by removing a role
fos:user:promote Promotes a user by adding a role
Generate
generate:bundle Generates a bundle
generate:command Generates a console command
generate:controller Generates a controller
Init
init:acl Mounts ACL tables in the database
Lint
lint:twig Lints a template and outputs encountered errors
lint:xliff Lints a XLIFF file and outputs encountered errors
lint:yaml Lints a file and outputs encountered errors
Router
router:match Helps debug routes by simulating a path info match
Security
security:check Checks security issues in your project dependencies
security:encode-password Encodes a password.
Server
server:log Starts a log server that displays logs in real time
server:run Runs a local web server
server:start Starts a local web server in the background
server:status Outputs the status of the local web server for the given address
server:stop Stops the local web server that was started with the server:start command
Sonata
sonata:admin:explain Explain an admin service
sonata:admin:generate Generates an admin class based on the given model class
sonata:admin:generate-object-acl Install ACL for the objects of the Admin Classes.
sonata:admin:list List all admin services available
sonata:admin:setup-acl Install ACL for Admin Classes
sonata:block:debug Debug all blocks available, show default settings of each block
sonata:core:dump-doctrine-metadata Get information on the current Doctrine's schema
sonata:easy-extends:dump-mapping Dump some mapping information (debug only)
sonata:easy-extends:generate Create entities used by Sonata's bundles
sonata:user:two-step-verification Generate a two step verification process to secure an access (Ideal for super admin pro
tection)
Swiftmailer
swiftmailer:email:send Send simple email message
swiftmailer:spool:send Sends emails from the spool
translation
translation:update Updates the translation file