How to add a .ovpn config file via cli in linux: sudo nmcli connection import type openvpn file vpnfile.ovpn How to set the username: sudo nmcli connection modify "${vpnname}" +vpn.data username="${myname}" How to set password: sudo nmcli connection modify "${name}" +vpn.secrets password="${PASS}"