Azure DevOps get CLI Version from Server
We use Azure DevOps and the Use Octopus CLI tool installer. Right now we hard code a version of the Octopus CLI (at Octopus' suggestion) to a known working version. This has caused two issues over the last three months where the CLI version wasn't compatible with the Server. Instead of us guessing at the correct CLI version, the server should suggest one.
The server could respond in multiple ways, e.g.
8.* => Install latest in major version.
7.3.* => Install latest in major and minor version.
8.0.1 => Install exact version.
* => Install whatever is latest.
This way our Azure DevOps team doesn't need to track release notes for the Octopus CLI to guess at the correct version