It's simple. Use the cli version of network-manager aka nmcli
List your available connection with
nmcli con
to get something like
NAME UUID TYPE DEVICE
Ethernet bbc6713e-2050-4c68-a66b-98607eda7e87 ethernet enp1s0
PIA France 476c8d97-beb7-48b2-9922-55e3062d3db9 vpn enp1s0
tun0 bcfa5e83-b84f-4141-b146-d3b57d496fd4 tun tun0
theWifi 89326285-7b0e-48e6-a67c-ce28e38a062e wifi --
PIA UK London 0c2841dc-cb62-437c-948d-b7b291544387 vpn --
PIA UK-S 3f60a5af-cc7e-45a5-b075-c5e2eb8bc075 vpn --
It's simple. Use the cli version of network-manager aka
nmcli
List your available connection with
to get something like
Then you can use
or
Look for help with