-
-
Notifications
You must be signed in to change notification settings - Fork 5
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.
The commands you will use most often are:
-
gt createto create a new project -
gt runto start the local development setup -
gt serveto run only the PHP development server -
gt buildto copy or compile client-side assets -
gt testto run the project's test suite -
gt 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.
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.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP