Files
cheatsheet-tldr/linux/nmcli-agent
2024-02-21 11:19:49 +00:00

23 lines
569 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# nmcli agent
> Run `nmcli` as a NetworkManager secret agent or polkit agent.
> This subcommand can also be called with `nmcli a`.
> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
- Register `nmcli` as a secret agent and listen for secret requests:
`nmcli agent secret`
- Register `nmcli` as a polkit agent and listen for authorization requests:
`nmcli agent polkit`
- Register `nmcli` as a secret agent and a polkit agent:
`nmcli agent all`