Skip Navigation

nmcli and nmtui for WiFi control from the command line

These utilities aren't particularly new, but I thought that I'd mention them for folks who might not have seen them or only used one or the other. I remember some time before I discovered each back in the day, because so many people just use graphical tools on laptops to manage WiFi.

Both are part of the current network-manager package in Debian Trixie, so not exactly hard to find; they're probably installed on most systems already.

nmtui provides a very simple, limited, ncurses-based, menu. It's mostly useful to select a WiFi network and connect to it. It can't do a number of important things, like trigger rescans or show authentication type on a WiFi network.

nmcli can be used in conjunction with nmtui to address some of its limitations. nmcli device wifi will show the list of reachable WiFi networks, including the technical details (auth data, speed) that nmtui doesn't.

1 comments