$ iwctl
device list
Example show device available wlan0
.
device wlan0 show
station wlan0 scan
station wlan0 get-networks
Example wifi name MyWIFI
station wlan0 connect MyWifi
For hidden network
station wlan0 connect-hidden MyWifi
Next input password for the network