A useful command line interface for SilverStripe developers.
- PHP 5.6 or above
- SilverStripe 4.x or above
- Composer
It is recommended to install this module globally with composer:
composer global require silverleague/silverstripe-console
Ensure your composer's bin
folder has been added to your system path.
If you wish to install this module from source, you can clone the repository and symlink bin/ssconsole
into your system path, for example:
git clone [email protected]:silverleague/silverstripe-console.git
cd silverstripe-console
chmod u+x bin/console
ln -s "$(pwd)/bin/ssconsole" /usr/local/bin/ssconsole
To show the console menu and list of commands, run ssconsole
from your terminal.
To run a command, choose the desired command from the menu and add it as an argument:
# Runs a task
ssconsole dev:tasks:cleanup-test-databases
# Builds the database and flushed the manifest/cache
ssconsole dev:build --flush
Sometimes you need to flush SilverStripe's manifest/cache while running CLI tasks. For example, if you've added a new BuildTask
, but it doesn't show up in the SilverStripe console yet.
You can add the --flush
option to any ssconsole
command to instruct SilverStripe to flush and rebuild its manifest.
This module is licensed under the MIT license.