2017-10-16 12:41:31 +01:00
|
|
|
# nmcli
|
|
|
|
|
|
|
|
> A command line tool for controlling NetworkManager.
|
|
|
|
|
|
|
|
- List all NetworkManager connections (shows name, uuid, type and device):
|
|
|
|
|
|
|
|
`nmcli connection`
|
|
|
|
|
2018-07-28 23:31:35 +01:00
|
|
|
- Print the available Wi-Fi access points:
|
|
|
|
|
|
|
|
`nmcli device wifi`
|
|
|
|
|
|
|
|
- Connect to the Wi-Fi network with a specified name and password:
|
|
|
|
|
|
|
|
`nmcli device wifi connect {{name}} {{password}}`
|
|
|
|
|
2017-10-16 12:41:31 +01:00
|
|
|
- Activate a connection by specifying an uuid:
|
|
|
|
|
|
|
|
`nmcli connection up uuid {{uuid}}`
|
|
|
|
|
|
|
|
- Deactivate a connection:
|
|
|
|
|
|
|
|
`nmcli connection down uuid {{uuid}}`
|
|
|
|
|
|
|
|
- Print statuses of network interfaces:
|
|
|
|
|
|
|
|
`nmcli device status`
|