silverstripe-console icon indicating copy to clipboard operation
silverstripe-console copied to clipboard

The missing Silverstripe console : supersake

silverstripe-console (supersake)

Scrutinizer Travis Packagist Packagist Packagist

Interact with your Silverstripe application from the command line with supersake.

Screenshot

Installation

composer install

$ composer require axyr/silverstripe-console

Run this from within your webroot:

$ php framework/cli-script.php dev/build
$ cp ./console/publish/supersake supersake

Now protect the supersake file

update .htaccess

# Deny access to supersake
<Files supersake>
	Order allow,deny
	Deny from all
</Files>

update web.config

<fileExtensions allowUnlisted="true" >
    ...
    <add fileExtension="supersake" allowed="false"/>
    ...
</fileExtensions>

You should now be able to show a list of available commands by running this from your webroot :

$ php supersake

Summary

Create DataObjects, Pages and more from predefined or custom stubs with:

$ php supersake make:dataobject MyCustomDataObject

List DataObjects, Controllers, Config and more in a nice table style list with:

$ php supersake list:controller

Further information

Documentation

For the Code of Conduct, see CodeOfConduct

For contributing, see Contributing

For further documentation information, see the docs