Steps to configure a wireless adapter to connect to nearby access point by shell commands

Runbook

$ sudo systemctl start iwd
$ sudo iwctl --passphrase <secret> station wlan0 connect <accesspoint>
$ sudo systemctl start dhcpcd@wlan0