aze/cli

Aze application installer.

dev-master 2019-11-12 14:33 UTC

README

composer global require "aze/cli"

How to

Create a new AZE application

aze new [APPLICATION_NAME]

If you don't give an application name, the application will be build in the current directory

Create a new AZE controller

aze new CONTROLLER_NAME [--dir=DIRECTORY]

Will create a new AZE controller in src/controller (by default) and update your composer.json. You can change the default directory if you set the --dir option.

If you don't give an application name, the application will be build in the current directory

Launch a local server

aze serve

To launch a local server and open your browser

aze serve -o

Parameters

To show an help

aze serve --help

List of parameters :

  • --host=HOST host use to serve your application [default: "localhost"]
  • --port=PORT port use to serve your application [default: 80]
  • --publicDir=PUBLICDIR directory containing your public files and your index.php [default: "web"]
  • --config=CONFIG Configuration file to serve your application [default: "config.properties"]
  • -o, --open Open your default browser once the server is launched

Configuration file

Exemple :

[server]
host=localhost
port=80
publicDir=web