This is not a simple task, as you can do complex operations via the API and it will be difficult to expose all the functionality via cli parameters.
It should at least be possible to:
- list shared folders (more detailed than now, as we also need ids)
- add a shared folder (store, id, parent-id, type, flags)
- remove a shared folder
This will allow to add & remove simple shares. More complex tasks should be done via the SOAP interface or by scripting cli calls.
PS: I thought I created this ticket in the past, but I couldn't find it. Possible duplicate.