Connect to Wifi with nmcli

I had to connect to a new wireless network recently. I have done this several times, but every time I have to go through man pages to find the arguments for the command. So I have decided to document this for everyone:

To view the list of wireless connections:
nmcli device wifi

To connect to the preferred wireless connection:
nmcli device wifi connect Jahans-Wifi password Jahans-Password

Ofcourse you will need to replace Jahans-Wifi with the essid of the connection and Jahans-Password with the actual password for the wifi.

Leave a Reply

Your email address will not be published. Required fields are marked *