You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SilverLeague Console is a Symfony console application which interfaces directly with a SilverStripe application for a better command line experience.
Use case
The SilverStripe framework ships with a built in CLI management tool - "framework/cli-script.php". It also has a bash wrapper called "sake". This tool essentially lets you run controllers from the command line in much the same way as you would from the browser, while providing added benefits such as not having to worry about web server timeouts, being able to run in a cron task, etc.
This tool is limited. The SilverLeague console aims to replace its use with a more powerful, flexible and featured tool for managing SilverStripe applications.
Aims over other community modules
There are some existing CLI modules for SilverStripe among the community already. This module is going to be built with the following focusses:
SilverLeague concepts first
PHP 5.6+ minimum (in turn, PHPUnit 5.7)
SilverStripe 4 minimum (?)
Don't use "sake" or variations of the same, since they mean nothing to unaware developers
Don't ship as a module that should be installed into a SilverStripe application - should run standalone
This module would not support SilverStripe 3.x at this stage. Users would be recommended to use an established console like "supersake" for legacy framework/CMS support.
Functionality
Most importantly the console will automatically detect all BuildTask instances from the SilverStripe application and expose them as console commands
silverleague/silverstripe-console
Repository: https://github.com/silverleague/silverstripe-console
Specification: https://silverleague.github.io/development/silverstripe-console
Introduction
The SilverLeague Console is a Symfony console application which interfaces directly with a SilverStripe application for a better command line experience.
Use case
The SilverStripe framework ships with a built in CLI management tool - "framework/cli-script.php". It also has a bash wrapper called "sake". This tool essentially lets you run controllers from the command line in much the same way as you would from the browser, while providing added benefits such as not having to worry about web server timeouts, being able to run in a cron task, etc.
This tool is limited. The SilverLeague console aims to replace its use with a more powerful, flexible and featured tool for managing SilverStripe applications.
Aims over other community modules
There are some existing CLI modules for SilverStripe among the community already. This module is going to be built with the following focusses:
This module would not support SilverStripe 3.x at this stage. Users would be recommended to use an established console like "supersake" for legacy framework/CMS support.
Functionality
BuildTaskinstances from the SilverStripe application and expose them as console commandsDiscussion: Support both 3.x and 4.x versions without needing a different console version installedRemovedLicense
To be released under the MIT license.