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