Skip to content

Proposal: silverstripe-console #1

@robbieaverill

Description

@robbieaverill

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:

  • 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

License

To be released under the MIT license.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions