Below are commands that you can use to connect and check the status of your WiFi connection using nmcli.
I usually use this when connecting my Rock Pi running Ubuntu to the WiFi Network. But commands below will also work as long as you have the nmcli in your Linux System.
Turn On WiFi
# Turn on WiFi nmcli r wifi on
Scan WiFi Networks
Continue reading How to connect to WiFi using nmcli
# Scan WiFi Networks nmcli dev wifi