7.4 C
Vancouver
Monday, April 29, 2024

Vagrant machine status

Must read

If you need to get the status of a vagrant machine you can run the following in a command window:

vagrant status aws --machine-readable | awk -F"," '{if ($3 == "state") print $4;}'

Will output:

running

if the machine is running or

not_created

if it is not.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article