命令行
快速生成应用
php think build demo
快速生成控制器
php think make:controller index@Blog
php think make:controller Blog
php think make:controller index@test/Blog --plain
php think make:controller index@test/Blog --api
快速生成模型
php think make:model index@Blog
php think make:model Blog
快速生成中间件
php think make:middleware index@Auth
php think make:middleware Auth
创建验证器类
php think make:validate index@User
清除缓存文件
php think clear
php think clear --dir\
php think clear --log
php think clear --log --dir
php think clear --cache
php think clear --cache --dir
php think clear --path d:\www\tp\runtime\log\
生成数据表字段缓存
php think optimize:schema
php think optimize:schema admin
php think optimize:schema --connection mysql
php think optimize:schema --table think_user
php think optimize:schema --table demo.think_user
生成路由映射缓存
php think optimize:route
php think optimize:route index
快速生成类库映射文件
php think optimize:autoload