Using EXIM REST to export workspaces

I was experimenting with and see I can export (and potentially import) documents & assets via command-line curl requests.

However, is it possible to use the same type of commands to export configuration, like a workspace? I am looking for repeatable tools for potentially synchronizing channel manager workspaces between environments. I know I can use the JCR console to export the nodes as XML or YAML - but can I script it?