published
updated
First make sure you're on the right interface:
interface wlp3s0
Then:
scan
OK
scan_results
bssid / frequency / signal level / flags / ssid
00:55255a 2462 -71 [WPA2-PSK-CCMP][ESS] WLAN-Network
00:11:99:51f0 2437 -64 [WPA2-PSK-CCMP][ESS] WLAN-Network2
add_network
0
(network ID)
set_network 0 ssid "WLAN-Network"
set_network 0 psk "SupahSecretPassphrase"
And that should do it!