Is there a command that allows one to update all currently installed Vagrant plugins?
I am using the original install command to update each individually at the moment, but this is not ideal.
Is there a command that allows one to update all currently installed Vagrant plugins?
I am using the original install command to update each individually at the moment, but this is not ideal.
Vagrant >=1.5
vagrant plugin update
Vagrant <1.5
Here is a single line command to update the installed Vagrant plugins.
for plugin in $(vagrant plugin list | cut -f1 -d' '); do vagrant plugin install $plugin; done;
As far as I know there is no built-in command to achieve this. But you could for example write a little shell-script, that reads the currently installed plugins from the directory ~\.vagrant.d\gems\gems
and then runs vagrant plugin install
for each of them.
A very easy one-liner:
vagrant plugin update $(vagrant plugin list |awk '/^[:alnum:]/i {print $1}')
The CLI output will be (for e.g.):
Updating plugins: vagrant-bindfs, vagrant-hostsupdater, vagrant-share, vagrant-vbguest. This may take a few minutes...
All plugins are up to date.
This will fetch all plugins from vagrant plugin list
that have an alphanumeric name.
Lower-/Uppercase does not matter – The awk
Regex is case insensitive.