$ nmcli nm wifi on2. Creates a new connection named "myname" and then connects it to "mySSID" SSID using "mypassword" password.
$ nmcli dev wifi con mySSID password mypassword name myname3. connects the Wi‐Fi connection with the name "myname"
$ nmcli con up id mynameOther information also in the man page of nmcli