2017-10-16 12:41:31 +01:00
|
|
|
# nmcli
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Manage the network configuration using NetworkManager.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `nmcli monitor` have their own usage documentation.
|
2022-03-12 07:41:05 +00:00
|
|
|
> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
|
2017-10-16 12:41:31 +01:00
|
|
|
|
2023-07-24 18:59:53 +01:00
|
|
|
- List all available wifi networks:
|
|
|
|
|
|
|
|
`nmcli device wifi`
|
|
|
|
|
|
|
|
- Connect to a wifi network:
|
|
|
|
|
|
|
|
`nmcli dev wifi connect {{SSID}}`
|
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
- Run an `nmcli` subcommand:
|
2017-10-16 12:41:31 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
`nmcli {{agent|connection|device|general|help|monitor|networking|radio}} {{command_options}}`
|
2017-10-16 12:41:31 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
- Display the current version of NetworkManager:
|
2018-07-28 23:31:35 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
`nmcli --version`
|
2018-07-28 23:31:35 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
- Display help:
|
2018-07-28 23:31:35 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
`nmcli --help`
|
2018-07-28 23:31:35 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
- Display help for a subcommand:
|
2017-10-16 12:41:31 +01:00
|
|
|
|
2021-07-11 20:40:19 +01:00
|
|
|
`nmcli {{subcommand}} --help`
|