sttz / expresso

expresso is a command line interface to control the ExpressVPN app
MIT License
63 stars 11 forks source link

Get VPN status #4

Closed james-rose closed 3 years ago

james-rose commented 3 years ago

Is there a way to retrieve the VPN status (ie VPN Connected or not connected?). Is this even possible through the web api?

sttz commented 3 years ago

It's possible with the library but the CLI doesn't currently expose this information.

You could call expresso alfred and when connected, the first entry in the JSON output has a ⚡️ icon and disconnect argument.

james-rose commented 3 years ago

The expresso alfred call works perfectly for this. Many thanks!