google "nmcli examples" Red Hat has a great page.
https://access.redhat.com/docume ... ine_Tool_nmcli.html
To view the available Wi-Fi access points, issue a command as follows:
~]$ nmcli dev wifi list
SSID MODE CHAN RATE SIGNAL BARS SECURITY
FedoraTest Infra 11 54 MB/s 98 ▂▄▆█ WPA1
Red Hat Guest Infra 6 54 MB/s 97 ▂▄▆█ WPA2
Red Hat Infra 6 54 MB/s 77 ▂▄▆_ WPA2 802.1X
* Red Hat Infra 40 54 MB/s 66 ▂▄▆_ WPA2 802.1X
VoIP Infra 1 54 MB/s 32 ▂▄__ WEP
MyCafe Infra 11 54 MB/s 39 ▂▄__ WPA2
To connect to MyCafe:
~]$ nmcli con add con-name MyCafe ifname wlan0 type wifi ssid MyCafe
If you need to add a Password for your connection, there are examples of that on the page, as well.