Gt commands
This page is the command reference for the gt CLI. For the conceptual overview, see gt command overview.
Command reference structure
Each command below is listed with a short summary and the most common use case. The detailed help output from the command line remains the best source for the exact flags available in your installed version.
Core commands
gt create
Creates a new WebEngine project.
Typical use:
gt create my-app
Optional arguments:
--namespaceor-n- The application’s root namespace--blueprintor-b- A template project to build on--emptyor-e- To force using the empty blueprint, with the default App namespace.
gt run
Starts the local development environment, including the server and any supporting watchers the project needs.
gt run
Optional arguments:
--portor-p(default 8080)--bindor-b(default 0.0.0.0 for all addresses)--debugor-d--no-buildto disable the build watcher--no-cronto disable the cron tasks
gt serve
Starts only the local PHP development server.
gt serve
--portor-p(default 8080)--bindor-b(default 0.0.0.0 for all addresses)--debugor-d
gt build
Runs the build system once, or in watch mode if supported by the project’s setup.
gt build
Optional arguments:
--watchor-wto continue the build runner after first build--configor-cdefaults to./build.ini--defaultor-dpath to a default build.ini--modeor-mto define production or development mode
gt test
Runs the project’s test suite.
gt test
gt cron
Runs the scheduled task watcher locally.
gt cron
Optional arguments:
--watchor-wto continue running cron commands as they become due. Without this flag, cron will only run the commands that are due at the point of executing the command--validateto check the syntax of the crontab file without running anything--nowor-nto run all tasks once now. Useful when using--watchfor when developing locally--fileto read a crontab file other than./crontab
gt deploy
Work in progress.
Check out the configuration reference page next.