IWCTL

iwctl is the interactive command-line interface for iwd (iNet wireless daemon), common on Arch Linux and minimal Linux setups.

1. Quick Interactive Shell

Launch the interactive prompt to auto-complete commands and device names:

1
iwctl

(Type exit or press Ctrl+D to leave at any time.)


2. Connect to Wi-Fi (Step-by-Step)

If running directly from your standard terminal prompt without entering the shell:

  1. Find your Wi-Fi device name (usually wlan0):
1
iwctl device list
  1. Turn on the Wi-Fi adapter (if powered off):
1
iwctl adapter phy0 set-property Powered on
  1. Scan for available networks:
1
iwctl station wlan0 scan
  1. List scanned networks**:
1
iwctl station wlan0 get-networks
  1. Connect to a network:
1
iwctl station wlan0 connect "Your-SSID-Name"

You will be prompted for the passphrase if required.


3. Essential Management Commands

ActionCommand
Check Connection Statusiwctl station wlan0 show
Disconnectiwctl station wlan0 disconnect
List Saved Networksiwctl known-networks list
Forget a Saved Networkiwctl known-networks "SSID-Name" forget

Note: iwctl only handles the Wi-Fi association. If your network doesn’t assign an IP address automatically, ensure a DHCP client like systemd-networkd or dhcpcd is active.