-
Notifications
You must be signed in to change notification settings - Fork 0
CLI usage
Cloud Control framework is compatible with usage from the command line interface (CLI). Just run the index.php script from the command line. Any arguments passed, will be used to form the request uri, so the regular sitemap applies to the execution. Below is an example:
cd cloudcontol/public/
php index.php my arguments
This will be parsed the same as visiting from a browser with the following uri: /path/to/cloudcontrol/my/arguments
Additionaly you may want to run with the argument for running with short_open_tag set to On. You can do so by using the following command:
php -d short_open_tag=on -q index.php my arguments
An example use case for the CLI would be for cron jobs to handle certain tasks in the background.
An issue is opened for the creation of a CLI specific component so certain code can be executed from the CLI, but not from the browser. See issue #14