# 使环境变量生效
source ~/.zshrc
# 执行box
box
# 这里可能会报错,权限问题,执行下面命令,比如我的路径是~/box/box
chmod 755 ~/box/box
# 再次执行 box
➜ ~ box
Console Tool
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
build Build the application as a bin.
build-prepare Prepare the enviroments for build the box cli.
build-self Build the application as a bin.
completion Dump the shell completion script
composer The proxy command of `php composer`.
config Config of box.
cs-fix The proxy command of `php cs-fix`.
debug Debug.
get Get the runtime or library into your project.
help Display help for a command
hyperf The hyperf proxy command.
info Dump the server info.
list List commands
php The php proxy command.
php-cs-fixer The proxy command of `php php-cs-fixer`.
phpstan The proxy command of `php phpstan`.
phpunit The proxy command of `php phpunit`.
pint The proxy command of `php pint`.
reverse-proxy Start the reverse proxy server for upstreams.
self-update Upgrade box to the latest version.
start Start hyperf servers.
version Dump the version of box.
describe
describe:aspects Describe the aspects.
describe:listeners Describe the events and listeners.
describe:routes Describe the routes information.
gen
gen:amqp-consumer Create a new amqp consumer class
gen:amqp-producer Create a new amqp producer class
gen:aspect Create a new aspect class
gen:command Create a new command class
gen:constant Create a new constant class
gen:controller Create a new controller class
gen:job Create a new job class
gen:kafka-consumer Create a new kafka consumer class
gen:listener Create a new listener class
gen:middleware Create a new middleware class
gen:nats-consumer Create a new nats consumer class
gen:nsq-consumer Create a new nsq consumer class
gen:process Create a new process class
gen:request Create a new form request class
gen:resource create a new resource
phar
phar:build Pack your project into a Phar package.
vendor
vendor:publish Publish any publishable configs from vendor packages.