Hi,
The curl idea is one that I think most people would think to try first. However, the problem is that there will be timeouts on AEM as a Cloud Service for the package handling. You can create package, but the request will timeout and there's not a good way of knowing if the package has finished...