Page 1 of 1

Comand line shell

Posted: Thu Mar 05, 2015 9:42 pm
by HarmO
it would be cool if a CLI tool exist for CMSMS.
like drupal has drush, wordpress has wp-cli. CMSMS could have its own comand line script.

easy setup, easy updates, clearing cache. all trough a line of text.
it would be fantastic if you could type somethin in the style of

Code: Select all

user@localhost: var/www$ cmsms dl stable-version name "mysite"
user@localhost: var/www$ cmsms install "mysite"
And afterwards you can do things like update

Code: Select all

user@localhost: var/www/mysite$ cmsms update
Or clear cache

Code: Select all

user@localhost: var/www/mysite$ cmsms cacheclear
checking module status to see witch module to update

Code: Select all

user@localhost: var/www/mysite$ cmsms modulestatus
user@localhost: var/www/mysite$ cmsms moduleupdate 15 //module number
user@localhost: var/www/mysite$ cmsms moduleupdate all

Re: Comand line shell

Posted: Wed Mar 11, 2015 9:07 pm
by JohnnyB
+1 Sounds like a great feature.
If you are handy with command line, you can still do things like this to find all files and remove them from a directory:
find temp/cache -type f -exec rm -f {} +
find temp/templates_c -type f -exec rm -f {} +

add if older than 10 days:
find temp/cache -type f -mtime +10 -exec rm -f {} +

But, yeah, user@localhost: var/www/mysite$ cmsms cacheclear would be super easy ;)

Re: Comand line shell

Posted: Tue Mar 24, 2015 1:01 pm
by HarmO
There was a presentation during the last geekmoot on this subject.

I was hoping to go but couldn't.
Any chance that someone filmed it?

Re: Comand line shell

Posted: Tue Mar 24, 2015 1:13 pm
by velden
During GeekMoot there was no presentation about a CLI tool for CMSMS.

Re: Comand line shell

Posted: Tue Mar 24, 2015 3:59 pm
by HarmO
Not on a CLI tool but on installation trough CLI was i believe. It was on the schedule anyway:
13:55 - 14:15 - CMSMS installation via Shell (Anne-Mieke Bovelett)

Re: Comand line shell

Posted: Tue Mar 24, 2015 5:00 pm
by velden
Yes, it was however covered by Jeff's presentation (ajprog).

The actual installation is done through the usual install method by the way.

Re: Comand line shell

Posted: Wed Mar 25, 2015 12:47 pm
by HarmO
ok thanx for telling :-)