tldr/pages/linux/nmcli.md

30 lines
637 B
Markdown
Raw Normal View History

2017-10-16 12:41:31 +01:00
# nmcli
> Manage the network configuration using NetworkManager.
> Some subcommands such as `nmcli monitor` have their own usage documentation.
> 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:
2021-07-11 20:40:19 +01:00
`nmcli --version`
2021-07-11 20:40:19 +01:00
- Display help:
2021-07-11 20:40:19 +01:00
`nmcli --help`
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`