選項: --help -h 顯示本幫助信息 --quiet -q 不輸出任何信息 --verbose -v 增加信息的詳細程度 --version -V 顯示本程序的版本號 --ansi 強制ANSI輸出 --no-ansi 禁止ANSI輸出 --no-interaction -n 不進行任何交互問題的詢問 --shell -s 啟動shell --process-isolation 用shell作為一個單獨的進程啟動命令 --env -e 環境名 --no-debug 關閉調試模式
可用的命令:
Available commands: help 顯示命令的幫助信息 list 命令列表 assetic assetic:dump 將所有asset保存到文件系統。 assets assets:install 在公用網站目錄中安裝各Bundle網站的asset。 cache cache:clear 清除緩存 cache:warmup Warms up一個空的緩存 config config:debug 將當前配置擴展 config:dump-reference 將默認配置擴展 container container:debug 為應用程序顯示當前服務 debug debug:config 將當前配置的擴展 debug:container 顯示應用程序的當前服務 debug:event-dispatcher 顯示應用程序的配置監聽器 debug:router 顯示應用程序的當前路徑 debug:swiftmailer 顯示應用程序的當前郵件 debug:translation 顯示消息信息的翻譯 debug:twig 列表顯示Twig的功能,過濾器,全局變量和測試 doctrine doctrine:cache:clear-metadata 為一個實體管理器清除所有的元數據緩存。 doctrine:cache:clear-query 為一個實體管理器清除所有的查詢緩存 doctrine:cache:clear-result 為一個實體管理器清除結果緩存 doctrine:database:create 創建一個已配置的數據庫 doctrine:database:drop 刪除一個已配置的數據庫 doctrine:ensure-production-settings 確認在生產環境下Doctrine的配置是正確的 doctrine:generate:crud 基於Doctrine實體生成增刪改查(CRUD) doctrine:generate:entities 從您的映射信息中生成實體類和方法的存根 doctrine:generate:entity 生成Bundle中的新Doctrine實體 doctrine:generate:form 基於Doctrine實體生成一個表單類型類 doctrine:mapping:convert 在支持的格式間轉換映射信息 doctrine:mapping:import 從已存在的數據庫中導入映射信息 doctrine:mapping:info 顯示所有被映射實體的基本信息 doctrine:query:dql 直接從命令行中運行任何的DQL doctrine:query:sql 直接從命令行中運行任何的SQL doctrine:schema:create 執行(或轉儲)生成數據庫方案所需的SQL語句 doctrine:schema:drop 執行(或轉儲)刪除數據庫方案所需的SQL語句 doctrine:schema:update 執行(或轉儲)更新匹配當前映射元數據數據庫方案所需的SQL語句 generate generate:bundle 生成Bundle generate:controller 生成一個控制器 generate:doctrine:crud 基於Doctrine實體生成CRUD generate:doctrine:entities 從您的映射信息中生成實體類和方法的存根 generate:doctrine:entity 在Bundle中生成一個Doctrine的新實體 generate:doctrine:form 基於Doctrine實體生成一個表單類型類 init init:acl 在數據庫中安裝ACL數據表 orm orm:convert:mapping 轉換支持格式之間的映射信息 router router:debug 為應用程序顯示當前路由 router:dump-apache 將所有路由轉儲為Apache重寫規則 security security:check 檢查你的項目依賴項的安全問題 server server:run 運行PHP內置的Web服務器 server:start 在后台開始PHP內置的Web服務器 server:status 輸出給定地址的內置Web服務器的狀態 server:stop 從服務器的啟動命令停止PHP內置的Web服務器 swiftmailer swiftmailer:debug 顯示應用程序的當前郵件 swiftmailer:email:send 簡單的郵件發送 swiftmailer:spool:send 從池中發送電子郵件 translation translation:debug 顯示消息信息的翻譯 translation:update 更新翻譯文件 twig twig:debug 列表顯示Twig的功能,過濾器,全局變量和測試 twig:lint lint一個模板輸出遇到的錯誤 yaml yaml:lint lint一個文件輸出遇到的錯誤