The document outlines various Vagrant commands for managing virtual machines (VMs), including commands for checking status, initializing, powering on/off, logging in, and deleting VMs. It emphasizes the need to be in the Vagrant folder to execute specific commands and notes that using VM IDs with commands may lead to unreliable results due to cached data. The commands include 'vagrant global-status', 'vagrant init', 'vagrant up', 'vagrant ssh', 'vagrant halt', 'vagrant destroy', 'vagrant reload', 'vagrant boxlist', and 'vagrant status'.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views1 page
Vagrant Commands
The document outlines various Vagrant commands for managing virtual machines (VMs), including commands for checking status, initializing, powering on/off, logging in, and deleting VMs. It emphasizes the need to be in the Vagrant folder to execute specific commands and notes that using VM IDs with commands may lead to unreliable results due to cached data. The commands include 'vagrant global-status', 'vagrant init', 'vagrant up', 'vagrant ssh', 'vagrant halt', 'vagrant destroy', 'vagrant reload', 'vagrant boxlist', and 'vagrant status'.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Vagrant commands
• vagrant global-status - To show status of all the VM’s
• vagrant global-status --prune - To show status of all the VM’s except the one’s deleted manually
We need to be in the vagrant folder to execute the following commands:
• vagrant init <box-name> - To setup the VM • vagrant up – To power on the VM • vagrant ssh – To login into the VM • vagrant halt – To power off the VM • vagrant destroy – To delete the VM • vagrant reload – To reload the VM • vagrant boxlist - To view all the VM boxes • vagrant status - To show status of the current VM
We can also use the vagrant commands by mentioning the VM id along
with them to apply the command to a particular VM. But those commands would not be much reliable because we get the VM id from the vagrant global-status command & that command shows cached data. So there may be a case when a particular VM must have been deleted but vagrant global- status still shows its data.