A one-stop solution for gracefully shutting down all running Vagrant boxes with a single command.
- Clone the repo
git clone https://github.com/yourusername/vagrant-halt-all.git
- Navigate to the repository folder.
cd vagrant-halt-all
- Make the script executable.
chmod +x vagrant-halt-all.sh
- Optionally, move the script to a location in your system's PATH for easy access.
mv vagrant-halt-all.sh /usr/local/bin/
./vagrant-halt-all.sh
This project is open source under the MIT License. Credit for the initial idea goes to this Stackoverflow answer