CLI Get Current Version
Is your feature request related to a problem? Please describe. I use CI/CD to deploy new versions of my .NET application with vpk, but often find that when my pipeline has been through most of the stages, it fails at the vpk pack stage because I've forgotten to update the version number of my app. I thought I would add a task at the start of the pipeline that checks whether the version has been incremented from the current live version, and if so cancels the pipeline early, but I couldn't see an easy way to do this with vpk.
Describe the solution you'd like A VPK command to get the current version of an application, given its source, would be fantastic.
Describe alternatives you've considered I think the simplest alternative is to use vpk download, and then some string wrangling logic to extract the version number from the full nuget package. This is fine and it works, but does require either downloading the full package, or cancelling the command mid-execution to save time.
Alternatively, downloading the releases.json file manually and extracting the data from there is an option with proper authentication.
Use GitVersion in your pipeline to automatically set version of your app. Then create tag and push it to repo back. In this way you don't have to remember about such details like bumping up version. I am forgetting doing it all the time 😊