Symphony Shell
This is an open discussion with 25 replies, filed under Extensions.
Search
I tried using this extension on Thursday, I'm not even sure if it worked. It didn't throw any errors, but I'd like to think it worked, doing whatever it was supposed to be doing.
So, you're getting success? Or just didn't throw any errors…
Confirmed that this is indeed working on a 2.2.1 build, I followed the README and was able to fire off commands.
I was able to write a quick demo that gives access to the REST API extension using:
php symphony -t {token} rest_api request -path entries/articles/2 -format json -method get
Which maps on to the REST API architecture URL like:
/symphony/api/entries/articles/2/?format=json&method=get
i.e. returns entry ID 2 in JSON.
Think of the possibilities! Some ideas:
- RESTful access (proof of concept complete!)
- enabling/disabling maintenance mode
- batch-saving entries (like the new batch save extension)
- clearing cache and logs
- exporting entries (Import/Export CSV extension)
- importing entries (running XML importers)
- exporting databases (Export Ensemble, Database Synchroniser etc)
- deploying sites, writing an extension that handles git deployments, setting permissions, updating databases etc.
@nick
batch save , do you mean this?
I do. It could be shell-enabled:
php symphony -t {token} resave_entries section articles
Create an account or sign in to comment.
lol, I think Nick means 'get-it-to-work'.
Something like this is an awesome idea!