linux-cli-community icon indicating copy to clipboard operation
linux-cli-community copied to clipboard

[Enhancement] Display countries from the CLI.

Open uploadWizdom opened this issue 5 years ago • 5 comments

Is your feature request related to a problem? Please describe. It's annoying that in order to check what countries are i need to switch back to this page. Would be nice if we could get a list of the countries.

Describe the solution you'd like Add a flag to print the countries available. Unfortunately i don't see any code that requests the countries from the api, but i think that should be the way to do it.

Describe alternatives you've considered I don't see any alternatives because the country information is only available from the api.

uploadWizdom avatar Jun 29 '20 07:06 uploadWizdom

Hi @uploadWizdom :)

Could you elaborate a bit more on the "why" ?

calexandru2018 avatar Jul 03 '20 07:07 calexandru2018

Hello - I just purchased ProtonVPN and installed the cli.

Right now, I want to connect to a certain country, but that requires a country code. There isn't currently a way to see the country code from the cli. So how am I do find the country code? It should be possible through a cli command, e.g. "--list-countries".

Seems like this would be faster than navigating through the "connect" menu.

Thanks everyone :)

def-mycroft avatar Nov 29 '20 19:11 def-mycroft

The country codes are the ISO codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

Except for GB. That's UK.

Rafficer avatar Nov 29 '20 19:11 Rafficer

Hi @def-mycroft

This is the community client and does not support this feature .

The official cli does support this feature (the name of the countries and the country codes are displayed within the dialog). The official client can be found here: https://protonvpn.com/blog/linux-vpn-cli-beta/

calexandru2018 avatar Nov 29 '20 19:11 calexandru2018

Okay, cool. Thanks @Rafficer , @calexandru2018 . Just thought I'd cast my vote for the feature.

def-mycroft avatar Nov 29 '20 20:11 def-mycroft