Basic Commands
| Command | Description |
|---|---|
nmcli | Show general help |
nmcli general status | Show overall NetworkManager status |
nmcli general hostname | View or set system hostname |
nmcli radio all | Show Wi-Fi and Bluetooth state |
nmcli networking on/off | Enable or disable all networking |
nmcli connection show | List saved connections |
nmcli device status | Show status of all devices |
Device Management
| Command | Description |
|---|---|
nmcli device | List all devices |
nmcli device show | Show detailed info for all devices |
nmcli device disconnect <device> | Disconnect a specific device (e.g. wlan0) |
nmcli device connect <device> | Connect a specific device |
Wi-Fi
| Command | Description |
|---|---|
nmcli device wifi list | List available Wi-Fi networks |
nmcli device wifi connect <SSID> password <password> | Connect to a Wi-Fi network |
nmcli device wifi connect <SSID> --ask | Connect to a Wi-Fi network and ask for password |
nmcli connection show --active | Show active connections |
nmcli connection up <name> | Activate a connection |
nmcli connection down <name> | Deactivate a connection |
Connections (Profiles)
| Command | Description |
|---|---|
nmcli connection add type ethernet ifname eth0 con-name home | Add new Ethernet connection |
nmcli connection modify <name> | Modify connection settings |
nmcli connection delete <name> | Delete a saved connection |
nmcli connection clone <name> <new_name> | Clone a connection profile |
Reset and Troubleshooting
| Command | Description |
|---|---|
nmcli connection reload | Reload all connection profiles |
nmcli networking off && nmcli networking on | Restart networking |
nmcli --ask | Prompt for password or secrets interactively |