https://github.com/devvoh/vagrant-manager
A simple php-based vagrant manager script
https://github.com/devvoh/vagrant-manager
Last synced: 3 months ago
JSON representation
A simple php-based vagrant manager script
- Host: GitHub
- URL: https://github.com/devvoh/vagrant-manager
- Owner: devvoh
- License: mit
- Created: 2019-04-23T11:11:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T08:45:29.000Z (over 6 years ago)
- Last Synced: 2024-12-27T15:30:31.775Z (about 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README #
`vm` is a simple little tool that makes working with multiple vagrant boxes much easier. It can be run from any directory (once set up to be used globally).
To use it globally:
```bash
sudo ln -s /full/path/to/vagrant-manager/vm /usr/local/bin/vm
```
You'll also need to run `composer install` in the directory where vagrant-manager is placed.
You can now run it from anywhere, and pulling the latest code from git is painless.
Then you can run it like so:
```bash
vm list
```
To reload all currently running boxes:
```bash
vm reload-all
```
And for all `-all` commands, you can add a filter option:
```bash
vm reload-all --filter=part
```
#### Default values
`vm` will pick up on two env values. `VM_DEFAULT_COMMAND` and `VM_DEFAULT_BOX`. If you export those in your shell, they will be picked up and applied where necessary.
If you set these to:
```bash
VM_DEFAULT_BOX=box VM_DEFAULT_COMMAND=ssh
```
Then running `vm` without arguments will `ssh` into `box`.
If you run `vm halt`, it'll do so on `box`.
#### To-do
1. Make the default flow recognize whether it's a machine or command. This would mean that `vm box` would `ssh` into it, and `vm halt` would `halt` box.