Yes, we can call /restman via a command line, with curl command.
An example for update (you know the ID),
1. create file mycwp.xml as below,
<l7:ClusterProperty version="0" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Name>#myCWPName#</l7:Name>
<l7:Value>#valueImTryingToSet#</l7:Value>
</l7:ClusterProperty>
2. call restman
curl -X PUT -k -H 'Content-Type: application/xml' -u admin:7layer 'https://localhost:9443/restman/1.0/clusterProperties/edf8c76261d259d6c7a8b02971b4ae4c' -d @mycwp.xml
(you may change the hostname, username/password accordingly)
if to create new cwp, the payload is the same, but use POST method and the url doesn't need the /{id}
curl -X POST -k -H 'Content-Type: application/xml' -u admin:7layer 'https://localhost:9443/restman/1.0/clusterProperties' -d @mycwp.xml
The gmu should work as well, but the payload is the same as calling the /restman directly, ie. you don't need the <l7:Resource> element, and in <l7:ClusterProperty> element, you need to define the namespace.
(in fact, the gmu will call /restman to do its job)