# Connecting to WiFi using wpa_cli | Kitaab
config.site_meta_description

# Connecting to WiFi using wpa_cli

ops cli linux ab ac ba <date> 2021-12-26 15:26</date>

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!