-
-
Notifications
You must be signed in to change notification settings - Fork 5
gt commands
This page is the command reference for the gt CLI. For the conceptual overview, see gt command overview.
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.
Creates a new WebEngine project.
Typical use:
gt create my-appOptional 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.
Starts the local development environment, including the server and any supporting watchers the project needs.
gt runOptional 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
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
Runs the build system once, or in watch mode if supported by the project's setup.
gt buildOptional 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
Runs the project's test suite.
gt testRuns the scheduled task watcher locally.
gt cronOptional 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
Work in progress.
Check out the configuration reference page next.
- 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