VAGRANT Commands Cheat Sheet

Here is a cli commands cheat sheet for VAGRANT command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is VAGRANT command?

Add some data here

        # To initate Vagrant:
vagrant init

# To add a box to a vagrant repo:
vagrant box add hashicorp/precise32

# To start a vm:
vagrant up

# To connect to a running instance:
vagrant ssh

# To shut down a vm:
vagrant halt

# To hibernate a vm:
vagrant suspend

# To set a vm to its initial state by cleaning all data:
vagrant destroy

# To restart a vm with a new provision script:
vagrant reload --provision
    

Check out the VAGRANT command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list