Symfony version 2.0.0-DEV(Beta3) - app/dev/debug
用法:
[options] command [arguments]
Options:
--help -h 顯示幫助資訊
--quiet -q 不輸出任何資訊
--verbose -v Increase verbosity of messages.
--version -V 顯示版本
--ansi -a 強制 ANSI 輸出
--no-interaction -n 不進行任何互動
--shell -s 啟動Shell
--env -e 環境名稱
--no-debug 關閉調試模式
可用指令:
help 顯示指令(?)的幫助資訊
list 列出指令
assetic
:dump Dumps all assets to the filesystem
assets
:install
cache
:clear 清除緩沖
:warmup Warms up an empty cache
container
:debug 為應用程式顯示目前服務(services)
doctrine
:ensure-production-settings 确認在生産環境下Doctrine已被正确配置
doctrine:cache
:clear-metadata 清除實體管理器的所有中繼資料緩存
:clear-query 清除實體管理器的所有隊列緩存
:clear-result 清除實體管理器的所有結果集緩存
doctrine:database
:create 建立已配置資料庫
:drop 删除已配置資料庫
doctrine:generate
:entities 從你的映射資訊中生成實體類和方法。
:entity 在Bundle中生成新的 Doctrine 實體
:proxies 為實體類生成代理類
doctrine:mapping
:convert 在支援格式之間轉換映像資訊
:import 導入已有資料庫的映射資訊
:info 顯示所有被映射實體的基本資訊
doctrine:query
:dql 在指令行直接執行DQL
:sql 在指令行直接執行SQL
doctrine:schema
:create 執行(或轉儲)生成資料庫Schema所需的SQL
:drop 執行(或轉儲)删除目前資料庫Schema所需的SQL
:update 執行(或轉儲)将資料庫Schema更新為比對目前映射中繼資料所需的SQL
init
:acl
:bundle
router
:debug 顯示應用程式目前路由
:dump-apache 當所有路由轉儲為Apache重寫規則
swiftmailer:spool
:send 從spool中發送郵件
例如:
php app/console init:bundle “Acme\TestBundle” src :在目錄src\Acme中将建立一個名為TestBundle的新bundle
本文轉自 firehare 51CTO部落格,原文連結:http://blog.51cto.com/firehare/585359,如需轉載請自行聯系原作者