Use and run

After completing the definition command, you can execute the command to process the corresponding business logic.

If not set, Swoft defaults to running commands in the coroutine environment.

View command

View all command groups that are currently defined

 php bin/swoft
# 或者
php bin/swoft -h
php bin/swoft --help 

View version

View current swoft frame version information

 php bin/swoft -V
# 或者
php bin/swoft --version 

Command help information

  • Command group help information
 php bin/swoft http
# 或者
php bin/swoft http -h 

  • Specific command help information
 php bin/swoft http:start -h
# 或者
php bin/swoft http:start --help 

Excuting an order

Run an operation command under the command group.

 php bin/swoft http:start 
/docs/2.x/en/console/usage.html
progress-bar