silverstripe-cli-installer
Painless command line installer for Silverstripe, (*1)
Installation
Install composer (linux | osx)
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Install the installer
$ composer global require axyr/silverstripe-cli-installer 0.0.2
Make sure that ~/.composer/vendor/bin directory is in your PATH, so you can use the silverstripe command., (*2)
Usage
Move to the directory where you want to add a new Silverstripte project,
and run the following command., (*3)
$ silverstripe new projectname
If you run this in for example /var/www/projects
it will create a project /var/www/projects/projectname, (*4)
The console will take you thru the required installation steps:, (*5)
, (*6)
Then you can run :, (*7)
$ cd projectname && vendor/bin/phpunit mysite
, (*8)