Vagrant Manager – command-line tool to simplify management of vagrant boxes
A little command line tool to manage many vagrant boxes without changing working directory.
$ npm install -g vgm
$ vgm add <name-of-the-box> <path-to-Vagrantfile-directory>
Where <name-of-the-box>
- is any convenient name that you would like to use for your box
and <path-to-Vagrantfile-directory>
is path to where your Vagrantfile
is stored.
$ vgm <name-of-the-box> status
This should show you your box’s status.
vgm add <name> [path]
Adds virtual machine to the manager
name
- any convenient name for your virtual machinepath
(optional) - path to Vagrantfile directory, if not present vgm
will use path to current directoryvgm remove <name>
Removes virtual machine from the manager configuration
name
- name of the machine that you want to removevgm list
Outputs list of all registered vitrual machines.
vgm <name> [cmd]
Runs vagrant command on a machine
name
- name of the machine that you want to run the command oncmd
(optional) - vagrant command, if not present vgm
will assume status
command