Create release for Test and deploy to Cert and Prod using Octo.exe in TFS Build

Hi,
I have a build in which I use “octo create-release” to create a new release and I specify to deploy it to Test. I do not specify a NuGet package so it grabs the latest release which is what I want it to do. Now I want to promote that release to Cert and then Prod and so I do that using “octo deploy-release”. If I hard code a release number then everything works as I would like, however, I want to just promote the release that I just created without having to specify the release number and it doesn’t seem to work. I don’t see a way to get this release number within the Build Process Template so that I can pass it to “octo deploy-release” command. Is there a way to do this?

Thanks,
Brian

Update:
I used the example:
octo create-release --project=HelloWorld --deployto=Production --server=http://octopus/api --apiKey=ABCDEF123456

However, instead of specifying one environment, I specified multiple environments like this:
octo create-release --project=HelloWorld --deployto=Test --deployto=Cert --deployto=Prod --server=http://octopus/api --apiKey=ABCDEF123456

and this worked! I didn’t expect it to because I didn’t see it documented, but it does work. I’m assuming this was intended, but it could be useful to document an example here in case someone else is interested in doing something similar:

Thanks,
Brian