NetworkManager

List devices

nmcli d

List connections

nmcli c

Start / stop a connection

nmcli c up/down <connection>

Scan for wifi networks

nmcli d wifi list

Add a new ethernet connection

nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.168.100.100/24 gw4 192.168.100.1

Add a new wifi connection

nmcli con add con-name MyCafe ifname wlan0 type wifi ssid MyNet
nmcli con modify MyNet wifi-sec.key-mgmt wpa-psk
nmcli con modify MyNet wifi-sec.psk 'password'

Applet

nm-applet --sm-disable

Edit connections

nm-connection-editor