A command line tool for controlling Linux NetworkManager.

# To list all NetworkManager connections (shows name, uuid, type and device):
nmcli connection

# To print the available Wi-Fi access points:
nmcli device wifi

# To connect to the Wi-Fi network with a specified name and password:
nmcli device wifi connect <name> password <password>

# To activate a connection by specifying an uuid:
nmcli connection up uuid <uuid>

# To deactivate a connection:
nmcli connection down uuid <uuid>

# To print statuses of network interfaces:
nmcli device status