Thanks for the response. In the end I actually found one of your api example codes using Ruby and I built on that to create my own CLI tool to create releases and deploy.
My build tool is in ruby anyway so now I don't need to shell out. Happy days. :)
It's great that all functionality is available on the api.