- 使用与运行
- 查看命令
- 查看版本
- 命令帮助信息
- 执行命令
使用与运行
完成定义命令后,可以执行命令,处理对应业务逻辑
如果不特殊设置,swoft 默认在协程环境运行命令
查看命令
查看当前已经定义的所有命令组
php bin/swoft# 或者php bin/swoft -hphp bin/swoft --help

查看版本
查看当前 swoft 框架版本信息
php bin/swoft -V# 或者php bin/swoft --version

命令帮助信息
- 命令组帮助信息
php bin/swoft http# 或者php bin/swoft http -h

- 具体命令帮助信息
php bin/swoft http:start -h# 或者php bin/swoft http:start --help

执行命令
运行命令组下面,某个操作命令。
php bin/swoft http:start
