LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nmcli-agent

runs nmcli as an agent daemon that responds to NetworkManager's

TLDR

Register nmcli as a secret agent and listen for secret requests
$ nmcli agent secret
copy
Register nmcli as a polkit agent and listen for authorization requests
$ nmcli agent polkit
copy
Register nmcli as both secret and polkit agent
$ nmcli agent all
copy

SYNOPSIS

nmcli agent command

DESCRIPTION

nmcli agent runs nmcli as an agent daemon that responds to NetworkManager's requests for secrets (passwords, keys) or polkit authorization requests. This is useful in environments without a desktop secret agent or polkit agent.As a secret agent, nmcli can provide Wi-Fi passwords, VPN credentials, and other secrets when NetworkManager needs them to establish connections. It prompts the user in the terminal for required credentials.As a polkit agent, nmcli handles authorization prompts for privileged NetworkManager operations, allowing command-line authentication without a graphical polkit agent.

PARAMETERS

secret, s

Run as a NetworkManager secret agent to provide passwords/credentials
polkit, p
Run as a polkit agent to handle authorization requests
all, a
Run as both secret and polkit agent

INSTALL

sudo apt install network-manager
copy
sudo apk add networkmanager-cli
copy

CAVEATS

The agent runs in the foreground and must remain running to handle requests. Only one secret agent or polkit agent of each type can be registered at a time. Primarily useful for headless systems or terminal-only environments.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid