Replace DEVICE with the name of your Wi-Fi device. Get a list of available networks:
iwctl station DEVICE get-networks
Connect to the desired network. If the network is not hidden, use the command:
iwctl station DEVICE connect SSID
Replace SSID with the name of the Wi-Fi network. If the network is hidden, you need to specify the SSID in double quotes. If a passphrase is required, you can provide it as a command line argument. Replace PASSPHRASE with the Wi-Fi network’s password.
iwctl station DEVICE connect SSID --passphrase=PASSPHRASE