Wifi connection in command line

Turn on wifi

Check whether the wifi is enabled

nmcli radio wifi

Enable wifi

nmcli radio wifi on

View available wifi SSID

nmcli dev wifi

New connection

nmcli dev wifi connect <connection name> password <password>

Connect to previously saved connection

Check previously saved connection

nmcli connection show

Connect to saved connection

nmcli connection up <connection name>