Upgrade Vagrant in Windows from Command Line without Prompt
To determine whether your Vagrant is out of date or not, issue:
If yours is out of date, you can download it from its download page. However, being a lazy programmer, that’s still too many clicks. I want to figure out a way to update or install Vagrant from the command line without prompt.
And here you go!
Vagrant binaries are distributed by Bintray, its format is:
After you issue
vagrant version, you know the correct version to upgrade, then download it:
Install it by
Make sure to use the full path instead of relative
.\vagrant.msi, and Vagrant should be installed in the default location
C:\HashiCorp\Vagrant. To find out all possible options, Just type
msiexec command only.
Saving a few clicks!