Skip to content
Greg Bowler edited this page Aug 30, 2018 · 13 revisions

The PHP.Gt command line interface makes it easy to perform common tasks when starting new projects or deploying them to servers.

All commands are made through the gt command:

  • gt create APPLICATION_NAME NAMESPACE [BLUEPRINT] - create a new application named ApplicationName, using the Namespace provided, based on the optional blueprint.
  • gt run - serve the application and run a build watcher on client side files. This command is a combination of gt serve and gt build. Configured through config.ini.
  • gt serve [--port PORT] - serve the application. Default port is 8080.
  • gt build [--watch] - build the client side assets, optionally watching the directory. Configured through [build.json](build system).
  • gt test [--type UNIT|ACCEPTANCE] - run all unit/acceptance tests, returning with an exit code of 0 on success.

Commands that are planned for future release:

  • gt deploy ENVIRONMENT - deploy code to the specified environment, as configured through config.ini.
Clone this wiki locally