vagrant --version
Create a new Vagrantfile (named precise64) using the specified box in the current directory:
vagrant init precise64 http://files.vagrantup.com/precise64.box
Then start the virtual machine:
vagrant up
Connect to the VM:
vagrant ssh
Other comamnds:
vagrant status
vagrant global-status
vagrant suspend
vagrant halt
Destroy the VM (without confirmation):
vagrant [destroy](http://docs.vagrantup.com/v2/cli/global-status.html) -f
Manage boxes
vagrant box list
vagrant box outdated
vagrant box remove <box>
vagrant box add | repackage | update
- Commit the
Vagrantfilebut ignore the.vagrantdirectory (which contains machine-specific state).
- By default the directory containing the
Vagrantfileis shared as/vagrantin the VM.