» Init
This initializes the current directory to be a Vagrant environmentby creating an initial Vagrantfile ifone does not already exist.
If a first argument is given, it will prepopulate the config.vm.box
setting in the created Vagrantfile.
If a second argument is given, it will prepopulate the config.vm.box_url
setting in the created Vagrantfile.
- If specified, a minimal Vagrantfile will be created. ThisVagrantfile does not contain the instructional comments that the normalVagrantfile contains.
» Examples
Create a base Vagrantfile:
Create a minimal Vagrantfile (no comments or helpers):
Create a new Vagrantfile, overwriting the one at the current path:
Create a Vagrantfile, locking the box to a version constraint: