1 Star 1 Fork 0

swoft / swoft-cli

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Swoft CLI

GitHub tag (latest SemVer) Php Version Swoft Doc Swoft License

🛠️ CLI tool application for quick use swoft.

  • Quick create new application skeleton
  • Quick create new component skeleton
  • Monitor file changes of the user's swoft project and automatically restart the server
  • Generate swoft class: http controller, http middleware, ws module, ws controller and more
  • More features ...

Documents on https://www.swoft.org/docs/2.x/zh-CN/tool/swoftcli/index.html

home

Install

Download phar from github releases page

Notice: please replace the {VERSION} to specified version

wget https://github.com/swoft-cloud/swoft-cli/releases/download/{VERSION}/swoftcli.phar

# quick check
php swoftcli.phar -V
php swoftcli.phar -h

Add to global ENV PATH:

# move to ENV path:
mv swoftcli.phar /usr/local/bin/swoftcli
chmod a+x /usr/local/bin/swoftcli

# check
swoftcli -V

Build

You can build package from latest code:

php -d phar.readonly=0 bin/swoftcli phar:pack -o=swoftcli.phar

License

Apache 2.0

Comments ( 0 )

Sign in for post a comment

About

Swoft CLI 是一个独立的命令行应用包,提供了一些内置的工具方便开发者使用 spread retract
Apache-2.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://git.oschina.net/swoft/swoft-cli.git
git@git.oschina.net:swoft/swoft-cli.git
swoft
swoft-cli
swoft-cli
master

Search