--deployto with multiple Enviroments


I am using Jenkins in combination with Octopus Deployment. Currently I want to deploy a release to mutilpe Enviroments… I used this Guideline: https://octopus.com/docs/api-and-integration/octo.exe-command-line/create-release

This part was interessting:
–deployto=VALUE [Optional] Environment to automatically deploy to, e.g., Production

----> but i didn’t metion that I can deploy to multiple Targets, does someone know how this works?

Tried this:
–deployto Test_Single_Server,Test_Anlage
–deployto Test_Single_Server Test_Anlage
–deployto Test_Single_Server;Test_Anlage

For Information my full command:
“D:\Builds\Helper\OctopusTools.4.24.4\octo.exe” create-release --project “Test” --version=“1.%BUILD_NUMBER%.%SVN_REVISION%” --packageVersion 1.%BUILD_NUMBER%.%SVN_REVISION% --apiKey ******* -server http://****** --deployto Test_Single_Server;Test_Anlage --progress --waitfordeployment


Stupid Question from myself :slight_smile: … This is the solution: split command up in 2 Arguments like this:
–deployto Test_Single_Server --deployto Test_Anlage --progress --waitfordeployment

Hi Alex,

Thanks for getting in touch! That’s great to hear you’ve gotten to the solution. The Octo.exe create-release doc page you linked to didn’t mention specifying this argument multiple times, so I’ve gone ahead and updated that to hopefully help in the future! Thanks for pointing this out, and please don’t hesitate to reach out if you have any further questions or concerns moving forward. :slight_smile:

Best regards,


1 Like

That’s perfect! Thank you! (specify this argument multiple times to deploy to multiple environments)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.