Installation
Install iwctl or networkmanager with your distro’s package manager.
Usage
iwctl
Find SSID
Find the name of your network. If you already know this, skip this step.
iwctl station wlan0 get-networksConnect to the Network
iwctl station wlan0 connect [SSID]Password
If your network has a password, it will prompt for it.
Note:
iwctldoesn’t play nice with captive portals, which are used when you sign into public wifi networks. If you are planning on using captive portals, usenmcli.
nmcli
Find SSID
Find the name of your network. If you already know this, skip this step.
nmcli device wifiConnect to the Network
nmcli device wifi connect [SSID]Password
If your network has a password, tell it to prompt for the password.
nmcli --ask dev wifi connect [SSID]