nmcli 是 Linux 上 NetworkManager 的命令行工具(NetworkManager Command Line Interface),用于查看与配置网络连接(如 Wi‑Fi、以太网、VPN)、管理网络设备状态、启用/禁用网络等。
/ˌɛn.ɛm.siː.elˈaɪ/
I used nmcli to connect to the Wi‑Fi.
我用 nmcli 连接了 Wi‑Fi。
After the update, the server lost network access, so the admin ran nmcli to check device status, restart the connection, and verify the DNS settings.
更新后服务器断网了,管理员用 nmcli 检查设备状态、重启连接,并核对 DNS 设置。
nmcli 来自 NetworkManager 的缩写 nm 加上 cli(command-line interface,命令行界面)。它是 NetworkManager 官方提供的命令行前端,用来在没有图形界面或需要脚本自动化时管理网络。