dev-master
9999999-dev https://github.com/superspring/sakemoreA command line tool for interfacing with Silverstripe.
BSD-3-Clause
The Requires
by Timothy Best
cache php cli command line password dump sake clear cache sakemore sake more pwd
A command line tool for interfacing with Silverstripe.
A command line tool for interfacing with Silverstripe., (*1)
This tool provides a developer or system administrator with Silverstripe functionality from the command-line. The system can be easily extended but out of the box you get the following functionality:, (*2)
Get a list of the commands available, (*3)
$ sake more help Help details for sake: sql-dump - Dumps the current database to the console. Example: sake more sql-dump clear - Flush's one or more of Silverstripe's caches. Expects type of cache as parameter Arguments: Type - A choice of: all, image, template, language, manifest, combined Example: sake more clear all - Clears all the caches sake more clear image - Finds cached images and deletes them sake more clear template - Clears cached templates sake more clear language - Finds cached languages from Zend translate and clears them sake more clear manifest - Rebuilds the manifest and finds new files sake more clear combined - Rebuilds js and css files which have been combined together console - Provides a PHP shell with Silverstripe loaded. Example: sake more console sql - Provides direct access to the given database. Example: sake more sql pwd - Allows a user to change their password. Expects two parameters: username and password. Arguments: Username - which member's password to change Password - the new password for this member Example: sake more pwd admin new_password sake more pwd user@email.com "a new password"
Get direct access to a PHP console - similar to 'php -a' but with tab completion available., (*4)
$ sake more console Commandline: php -q [...]/sakemore/thirdparty/phpsh/phpsh.php [...]/sakemore/scripts/consolerole-init.php phpsh (c)2006 by Charlie Cheever and Dan Corson and Facebook, Inc. type 'h' or 'help' to see instructions & features New Feature: You can use the -c option to turn off coloring php> [here you can run any PHP command and have full access to all of Silverstripe's functionality]
Get direct access to your SQL CLI, (*5)
$ sake more sql psql (9.1.9, server 9.1.12) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. sakemore_dev=>
A command line tool for interfacing with Silverstripe.
BSD-3-Clause
cache php cli command line password dump sake clear cache sakemore sake more pwd