Running Vagrant Up From Anywhere

Vagrant has become a standard tool to use for web development, but one thing that’s annoyed me is having to navigate to directories on the command line just to run vagrant up or vagrant ssh.

Running the global-status command will show you the status of all your vms, but it also gives you an ‘id’

$: vagrant global-status

Running vagrant global-status

From anywhere in the command line you can run specific vagrant commands using the machines ID:

$: vagrant up ae0db97

Nice little timesaver!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store