Gt command overview
The gt command gathers the everyday WebEngine tasks behind one interface. Rather than remembering a list of package-specific commands, you can create, run, build, test, and manage a project from one place.
It is mainly a development convenience. A production deployment does not depend on gt itself. Underneath, the project is still a normal Composer-managed PHP application.
Core commands
The commands you will use most often are:
gt createto create a new projectgt runto start the local development setupgt serveto run only the PHP development servergt buildto copy or compile client-side assetsgt testto run the project’s test suitegt cronto run scheduled jobs locally
You do not need to memorise every flag immediately. The important thing early on is knowing which command belongs to which kind of task.
Typical daily workflow
A fairly normal day with WebEngine might look like this:
- Create a project with
gt createif you are starting something new. - Start the app with
gt run. - Edit the page view, page logic, or application classes.
- Run tests with
gt test. - If you are changing client-side assets, let
gt runorgt build --watchkeep them up to date.
Commands such as gt create are used occasionally, while gt run and gt test tend to become part of the normal loop.
See the full reference of gt commands, or move on to the Hello World tutorial.