Linux Commands Helper
💬 Your AI-powered Linux assistant
nmcli Command - NetworkManager Command Line Interface
The nmcli command is a command-line client for NetworkManager. It is used to create, display, edit, delete, activate, and deactivate network connections, as well as control and display network device status.
Syntax
nmcli [options] [command] [arguments]
Examples
nmcli device status
Show the status of all network devices.
nmcli connection show
List all configured network connections.
sudo nmcli device wifi connect "SSID" password "yourpassword"
Connect to a Wi-Fi network.
Notes
- nmcli is part of the NetworkManager package.
- Requires root privileges for some operations.
- Useful for scripting and headless server environments.