Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to update all Vagrant plugins

Tags:

vagrant

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.

like image 495
Michael Robinson Avatar asked Nov 29 '22 01:11

Michael Robinson


1 Answers

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;

like image 141
Kevin Risden Avatar answered Jun 04 '23 01:06

Kevin Risden