uses nmcli to connect to networks while storing username and password information