Boxes
Interacting with Vagrant boxes. The are stored in ~/.vagrant.d/boxes
vagrant box list
lists all boxes
vagrant box add
installs new box
examples:
-
local:
vagrant box add debian-76 packer_virtualbox-iso_virtualbox.box
-
remote:
vagrant box add ubuntu-64 http://my.domain.com/ubuntu-64.box
vagrant box remove
uninstalls box
examples:
vagrant box remove coreos-alpha
note: it doesn’t remove box directory
Workspace
Interacting with your Vagrant environment inside workspace.
vagrant init
initializes workspace and creates Vagrantfile and .vagrant directory
note: you can use --minimal
option
vagrant up
runs Vagrant environment
note: you can use --no-provision
option
vagrant status
example:
vagrant provision
reruns box configuration, doesn’t recreate box
note: if you have > 1 provisioners you can specify it with provision-with
option
vagrant ssh
connects to the machine
vagrant destroy
cleans the workspace, destroy box
note: -f
option destroys destroys box without prompt