How to create a Custom Curl commands:
Use Firebug/Chrome DevTool with persist option & manually do any operation you want to mimic.. Then see the network call and copy it as Curl. There you can see the call with parameters to person the action.
There is no documented direct commend otherwise to do the needful.
-Kautuk
Kautuk Sahni