List devices:
nmcli
List available wifi networks:
nmcli device wifi
Connect to a network:
nmcli device wifi connect "SSID" password "password"