Bookworm - Configure a Wi-Fi connection to a Wi-Fi network from CLI

January 8, 2024, 07:14

oops.se

To complete a command or show values press the TAB key twice and that is showed as [TAB][TAB]. To indicate where you need to input your Wi-Fi network credentials is indicated with <>, ex.: <wifi-ssid>. Replace the text <wifi-ssid> with your Wi-Fi network name (SSID) and <network-password> with your WiFis password. sudo nmcli radio wifi on sudo nmcli device wifi connect up <wifi-ssid> password "<network-password>" To view if a network is already configured type: sudo nmcli device wifi connect[TAB][TAB] or sudo nmcli device wifi list