Last active
March 29, 2016 19:23
-
-
Save donigian/cc2450219e5c92901390 to your computer and use it in GitHub Desktop.
Vagrant Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant Cheat Sheet | |
Essential Commands | |
vagrant up - Starts your virtual machine. | |
vagrant status - Tells you if your virtual machine is running. | |
vagrant suspend - Saves the state of your virtual machine. (Similar to putting it to sleep.) | |
vagrant resume - Restores a suspended virtual machine. (Similar to waking it up from sleep.) | |
After your first vagrant up, a suspend/resume operation only takes a few seconds. | |
Destroying your virtual machine means that you'll need to wait through the ~20 minute boostrap process the next time that you vagrant up. | |
Commands for Advanced Users | |
vagrant halt - Shuts down your virtual machine. | |
After your first bootstrap, a vagrant up only takes about one minute to complete. | |
vagrant destroy - Destroys your virtual machine to the state of its base image. | |
After you destroy a virtual machine, a vagrant up takes the full ~20 minutes to complete. | |
vagrant ssh - Logs you into your virtual machine over SSH and provides a terminal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment