Typing vagrant from the command line will display a list of all available commands.
vagrant up-- starts vagrant environment (also provisions only on the FIRST vagrant up)vagrant status-- outputs status of the vagrant machinevagrant halt-- stops the vagrant machinevagrant reload-- restarts vagrant machine, loads new Vagrantfile configurationvagrant provision-- forces reprovisioning of the vagrant machinevagrant ssh-- connects to machine via SSHvagrant destroy-- stops and deletes all traces of the vagrant machine
vagrant -v-- Get the vagrant versionvagrant global-status-- outputs status of all vagrant machinesvagrant suspend-- Suspends a virtual machine (remembers state)vagrant resume-- Resume a suspended machine (vagrant up works just fine for this as well)vagrant reload --provision-- Restart the virtual machine and force provisioningvagrant push-- Yes, vagrant can be configured to deploy code!vagrant up --provision | tee provision.log-- Runsvagrant up, forces provisioning and logs all output to a file
- If you are using VVV, you can enable xdebug by running
vagrant sshand thenxdebug_onfrom the virtual machine's CLI.