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!