Symfony命令大全

执行命令:

$ php bin/console

查看一下命令

Symfony version 3.1.5 - app/dev/debug

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:
  help                                    Displays help for a command
  list                                    Lists commands
 assets
  assets:install                          Installs bundles web assets under a pu
blic web directory
 cache
  cache:clear                             Clears the cache
  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 appli
cation
  debug:event-dispatcher                  Displays configured listeners for an a
pplication
  debug:router                            Displays current routes for an applica
tion
  debug:swiftmailer                       Displays current mailers for an applic
ation
  debug:translation                       Displays translation messages informat
ion
  debug:twig                              Shows a list of twig functions, filter
s, 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 regi
on.
  doctrine:cache:clear-metadata           Clears all metadata cache for an entit
y manager
  doctrine:cache:clear-query              Clears all query cache for an entity m
anager
  doctrine:cache:clear-query-region       Clear a second-level cache query regio
n.
  doctrine:cache:clear-result             Clears result cache for an entity mana
ger
  doctrine:database:create                Creates the configured database
  doctrine:database:drop                  Drops the configured database
  doctrine:database:import                Import SQL file(s) directly to Databas
e.
  doctrine:ensure-production-settings     Verify that Doctrine is properly confi
gured for a production environment.
  doctrine:generate:crud                  Generates a CRUD based on a Doctrine e
ntity
  doctrine:generate:entities              Generates entity classes and method st
ubs from your mapping information
  doctrine:generate:entity                Generates a new Doctrine entity inside
 a bundle
  doctrine:generate:form                  Generates a form type class based on a
 Doctrine entity
  doctrine:mapping:convert                Convert mapping information between su
pported formats.
  doctrine:mapping:import                 Imports mapping information from an ex
isting database
  doctrine:mapping:info
  doctrine:migrations:diff                Generate a migration by comparing your
 current database to your mapping information.
  doctrine:migrations:execute             Execute a single migration version up
or down manually.
  doctrine:migrations:generate            Generate a blank migration class.
  doctrine:migrations:latest              Outputs the latest version number
  doctrine:migrations:migrate             Execute a migration to a specified ver
sion or the latest available version.
  doctrine:migrations:status              View the status of a set of migrations
.
  doctrine:migrations:version             Manually add and delete migration vers
ions from the version table.
  doctrine:query:dql                      Executes arbitrary DQL directly from t
he command line.
  doctrine:query:sql                      Executes arbitrary SQL directly from t
he 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: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
  generate:doctrine:crud                  Generates a CRUD based on a Doctrine e
ntity
  generate:doctrine:entities              Generates entity classes and method st
ubs from your mapping information
  generate:doctrine:entity                Generates a new Doctrine entity inside
 a bundle
  generate:doctrine:form                  Generates a form type class based on a
 Doctrine entity
 liip
  liip:imagine:cache:remove               Remove cache for given paths and set o
f filters.
  liip:imagine:cache:resolve              Resolve cache for given path and set o
f filters.
 lint
  lint:twig                               Lints a template and outputs encounter
ed errors
  lint:yaml                               Lints a file and outputs encountered e
rrors
 orm
  orm:convert:mapping                     Convert mapping information between su
pported formats.
 router
  router:match                            Helps debug routes by simulating a pat
h info match
 security
  security:check                          Checks security issues in your project
 dependencies
  security:encode-password                Encodes a password.
 server
  server:run                              Runs PHP built-in web server
  server:start                            Starts PHP built-in web server in the
background
  server:status                           Outputs the status of the built-in web
 server for the given address
  server:stop                             Stops PHP‘s built-in web server that w
as started with the server:start command
 swiftmailer
  swiftmailer:debug                       Displays current mailers for an applic
ation
  swiftmailer:email:send                  Send simple email message
  swiftmailer:spool:send                  Sends emails from the spool
 translation
  translation:update                      Updates the translation file
 vich
  vich:mapping:debug                      Debug a mapping.
  vich:mapping:debug-class                Debug a class.
  vich:mapping:list-classes               Searches for uploadable classes.

中文如下

 1 Available commands:
 2  help                                  显示命令的帮助信息
 3  list                                  命令列表
 4 assetic
 5  assetic:dump                          将所有asset保存到文件系统。
 6 assets
 7  assets:install                        在公用网站目录中安装各Bundle网站的asset。
 8 cache
 9  cache:clear                           清除缓存
10  cache:warmup                          Warms up一个空的缓存
11 config
12  config:debug                          将当前配置扩展
13  config:dump-reference                 将默认配置扩展
14 container
15  container:debug                       为应用程序显示当前服务
16 debug
17  debug:config                          将当前配置的扩展
18  debug:container                       显示应用程序的当前服务
19  debug:event-dispatcher                显示应用程序的配置监听器
20  debug:router                          显示应用程序的当前路径
21  debug:swiftmailer                     显示应用程序的当前邮件
22  debug:translation                     显示消息信息的翻译
23  debug:twig                            列表显示Twig的功能,过滤器,全局变量和测试
24 doctrine
25  doctrine:cache:clear-metadata         为一个实体管理器清除所有的元数据缓存。
26  doctrine:cache:clear-query            为一个实体管理器清除所有的查询缓存
27  doctrine:cache:clear-result           为一个实体管理器清除结果缓存
28  doctrine:database:create              创建一个已配置的数据库
29  doctrine:database:drop                删除一个已配置的数据库
30  doctrine:ensure-production-settings   确认在生产环境下Doctrine的配置是正确的
31  doctrine:generate:crud                基于Doctrine实体生成增删改查(CRUD)
32  doctrine:generate:entities            从您的映射信息中生成实体类和方法的存根
33  doctrine:generate:entity              生成Bundle中的新Doctrine实体
34  doctrine:generate:form                基于Doctrine实体生成一个表单类型类
35  doctrine:mapping:convert              在支持的格式间转换映射信息
36  doctrine:mapping:import               从已存在的数据库中导入映射信息
37  doctrine:mapping:info                 显示所有被映射实体的基本信息
38  doctrine:query:dql                    直接从命令行中运行任何的DQL
39  doctrine:query:sql                    直接从命令行中运行任何的SQL
40  doctrine:schema:create                执行(或转储)生成数据库方案所需的SQL语句
41  doctrine:schema:drop                  执行(或转储)删除数据库方案所需的SQL语句
42  doctrine:schema:update                执行(或转储)更新匹配当前映射元数据数据库方案所需的SQL语句
43 generate
44  generate:bundle                       生成Bundle
45  generate:controller                   生成一个控制器
46  generate:doctrine:crud                基于Doctrine实体生成CRUD
47  generate:doctrine:entities            从您的映射信息中生成实体类和方法的存根
48  generate:doctrine:entity              在Bundle中生成一个Doctrine的新实体
49  generate:doctrine:form                基于Doctrine实体生成一个表单类型类
50 init
51  init:acl                              在数据库中安装ACL数据表
52 orm
53  orm:convert:mapping                   转换支持格式之间的映射信息
54 router
55  router:debug                          为应用程序显示当前路由
56  router:dump-apache                    将所有路由转储为Apache重写规则
57 security
58  security:check                        检查你的项目依赖项的安全问题
59 server
60  server:run                            运行PHP内置的Web服务器
61  server:start                          在后台开始PHP内置的Web服务器
62  server:status                         输出给定地址的内置Web服务器的状态
63  server:stop                           从服务器的启动命令停止PHP内置的Web服务器
64 swiftmailer
65  swiftmailer:debug                     显示应用程序的当前邮件
66  swiftmailer:email:send                简单的邮件发送
67  swiftmailer:spool:send                从池中发送电子邮件
68 translation
69  translation:debug                     显示消息信息的翻译
70  translation:update                    更新翻译文件
71 twig
72  twig:debug                            列表显示Twig的功能,过滤器,全局变量和测试
73  twig:lint                             lint一个模板输出遇到的错误
74 yaml
75  yaml:lint                             lint一个文件输出遇到的错误

时间: 2024-10-09 21:41:56

Symfony命令大全的相关文章

Linux常用命令大全

系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda 在磁盘上执行测试性读取操作 cat /proc/cpuinfo 显示CPU info的信息 cat /proc/interrupts 显示中断 cat /proc/meminfo 校验

linux下解压命令大全

.tar 解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!)---------------.gz解压1:gunzip FileName.gz解压2:gzip -d FileName.gz压缩:gzip FileName .tar.gz 和 .tgz解压:tar zxvf FileName.tar.gz压缩:tar zcvf FileName.tar.gz DirName---------------.bz

学习笔记(2)---Matlab 图像处理相关函数命令大全

Matlab 图像处理相关函数命令大全 一.通用函数: colorbar  显示彩色条 语法:colorbar \ colorbar('vert') \ colorbar('horiz') \ colorbar(h) \ h=colorbar(...) \ colorbar(...,'peer',axes_handle) getimage 从坐标轴取得图像数据 语法:A=getimage(h) \ [x,y,A]=getimage(h) \ [...,A,flag]=getimage(h) \

黑客攻击常用CMD命令大全

黑客常用命令大全net user heibai lovechina /add 加一个heibai的用户密码为lovechina net localgroup Administrators heibai /add 把他加入Administrator组net start telnet 开对方的TELNET服务net use z:\127.0.0.1c$ 映射对方的C盘net use \\ip\ipc$ " " /user:" " 建立IPC空链接 net use \\i

linux vi 命令大全

linux vi 命令大全 进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename....filename :打开多个文件,依次进行编辑

linux解压命令大全

linux解压命令大全 .tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)———————————————.gz解压1:gunzip FileName.gz解压2:gzip -d FileName.gz压缩:gzip FileName .tar.gz 和 .tgz解压:tar zxvf FileName.tar.gz压缩:tar zcvf FileName.tar.gz DirName————————

常用cmd命令大全

最早的电脑系统是从DOS系统开始,DOS时代没有现在Windows这样的视窗操作界面,让你输入命令.随着电脑的发展至今,学习一些常用cmd命令大全是很有必要.大多数的程序员高手们或计算机专家在DOS系统下的操作是非常历害,所以菜鸟要想成为计算机高手,不防多学习一些cmd命令大全. 1.CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本.文件系统版本) 2. CMD命令大全详解: 1. gpedit.msc-----组策略. 2..sndrec32-------录

DOS命令大全(经典收藏)

DOS命令大全(经典收藏)  憶安 2011-11-18 21:46:01 #1 一: net use \\ip\ipc$ " " /user:" " 建立IPC空链接 net use \\ip\ipc$ "密码" /user:"用户名" 建立IPC非空链接 net use h: \\ip\c$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H: net use h:

Mac 學習系列之SVN环境配置及常用命令大全

Windows里面用SVN是比較方便和Easy的,mac下面的其實也一樣. mac下带有SVN因此只需要激活它–环境配置: svnadmin create $Path 用来下载一个svn程序即可 下载后就可以下载代码了. 以下是svn 常用命令大全: ??1.将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout http://xxxxxxxxxxxx 简写:svn co 2.往版本库中添加新的文件 svn add fil