Connecting to the internet in terminal with Network Manager (nmcli)

Have you ever been in a position where your GUI just needs work done or some complicated thing came up denying you access to the Network Manager icon or the GUI in general? It’s one of those times you really wish you have wicd installed on your machine, but most people are given Network Manager to start off. Fear Not network manager is actually pretty easy when you know what your doing with it.

Step 1.

Type the command : nmcli dev wifi

Returns :

Step 2.
The network I wanted to connect to was 2WIRE316
Type the command : nmcli dev wifi connect 2WIRE316 password shhmypassword
                                 nmcli dev wifi connect <SSID> password <YOUPASSWORD>
Give it a few and when you see the terminal is ready for input again you are online.
I hope this helps you out, needless to say, it did for me.