Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

majebry's avatar

How to safely shutdown vagrant?

I know vagrant up is for running the VM, and vagrant ssh to access it. But, when my work session is done, how to safely shutdown the VM, and do I need to do that before shutting down the Host machine? I've searched but got puzzled between vagrant halt and vagrant destroy. The thing is that I don't want to mess up with my work.

0 likes
2 replies
boni's avatar

Thanks @ahuggins

Hey @majebry if you want to see all vagrant commands you can run command vagrant -h.

As you can see in the help: vagrant destroy - Stop and deletes all traces of the vagrant machine vagrant halt stops the vagrant machine

Please or to participate in this conversation.