It used to work but I guess one of the updates broke it. I can connect to the wifi on my phone and other OS's. Unsure of what would cause this. I have tried deleting the profile for each connection and re-entering passwords but nothing. IF I remove passwords for the connections it will work.
If you don't want your password to appear in your history just leave out the password part and add the
-a option and it will ask for it after you hit enter:
sudo nmcli -a dev wifi connect <your ssid>
-a | --ask When using this option nmcli will stop and ask for any missing required arguments, so do not use this option for non-interactive purposes like scripts. This option controls, for example, whether you will be prompted for a password if it is required for connecting to a network.