Skip to content

๐Ÿ› ๏ธ Command line tool for quick use swoft. Support create new application, generate class, hot reload server and more.

License

Notifications You must be signed in to change notification settings

swoft-cloud/swoft-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bfd4cfb ยท Dec 9, 2020

History

99 Commits
Dec 9, 2020
May 31, 2020
Sep 23, 2019
Oct 12, 2019
Jun 29, 2019
Feb 24, 2019
May 31, 2020
Aug 4, 2019
May 31, 2020
Jan 15, 2019
Aug 4, 2019
May 31, 2020
May 31, 2020
Dec 1, 2019
May 26, 2019
Aug 11, 2019
Feb 24, 2019
Sep 22, 2019
Jul 27, 2019

Repository files navigation

Swoft CLI

GitHub tag (latest SemVer) Php Version Swoft Doc Swoft License PHP-CI

ไธญๆ–‡่ฏดๆ˜Ž

๐Ÿ› ๏ธ swoft-cli is an 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
# eg
wget https://github.com/swoft-cloud/swoft-cli/releases/download/v0.2.0/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