Create-release cannot automatically select version number

I’m trying to create a release using octo.exe.
I have pushed a package to my Octopus NuGet repository and can see it there.
I’m using the following command:
.\Tools\Octopus\Octo.exe create-release --force --project “MyProjectName” --server --apiKey XXXXXXX
The docs tell me that if I do not specify a version number, it will use the latest availble pacakge, but I get the error:
“A version number was not specified and could not be automatically selected.”

Full output:

Octopus Deploy Command Line Tool, version

Handshaking with Octopus server:
Handshake successful. Octopus version:; API version: 3.0.0
Finding project: MyProjectName
Finding deployment process for project: MyProjectName
Finding release template…
Resolving NuGet package versions…
Finding latest NuGet package for step: Deploy website
A version number was not specified and could not be automatically selected.
Exit code: -1


Thanks for reaching out.

First of all I’d recommend you to try with the latest version of Octo.exe that was released for the version of the Octopus server that you are using. You should be downloading Octo.exe version from this link:

If that doesnt work:

  • If you specify a version number, does it let you create the release?
  • If you go to Projects -> [your project] -> Settings, what do you see under the “Release Versioning” section? If you can send a screenshot.
  • Please paste again the full command and the output while using the Octo.exe version I recommended above.

Please do know that we released lots of versions both from the Octopus Server and Octo.exe since 2.6, and that we might have fixed this version in a more recent version. I can absolutely confirm that this is working as expected in the latest version, and it has been for quite a while.

Best regards,