-
-
Notifications
You must be signed in to change notification settings - Fork 6
gt commands
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 ofgt serve
andgt 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.
Website | Packagist | CircleCI | Scrutinizer
- Request-response lifecycle
- Running your application
- Project layout
- Application architecture
- Web servers
- URIs
- Page view
- Dynamic URIs and pages
- Headers and footers
- Page logic
- Protected globals
- User input
- Cookies
- Sessions
- DOM manipulation
- Custom HTML components
- DOM templates
- Binding data to the DOM
- Database
- Client side assets
- API Webservices
- Security
- Configuration
- Build system
- Coding styleguide