nmcli
TLDR
List all NetworkManager connections
SYNOPSIS
nmcli [OPTIONS] {general|networking|radio|connection|device|agent|monitor} [COMMAND] [ARGUMENTS]
DESCRIPTION
nmcli is a command-line client for NetworkManager. It allows controlling NetworkManager and reporting network status, creating, editing, activating, and deactivating network connections, and managing network devices.
PARAMETERS
-t, --terse
Produce terse output suitable for scripts-p, --pretty
Produce human-readable formatted output-m, --mode tabular|multiline
Switch between output modes-c, --colors auto|yes|no
Control colored output-f, --fields
Specify which fields/columns to output-e, --escape yes|no
Escape column separators in values-a, --ask
Prompt for missing parameters-s, --show-secrets
Display passwords and secrets-w, --wait seconds
Set timeout for operations--offline
Work without NetworkManager daemon
OBJECTS
general
Manage NetworkManager status, hostname, permissions, and loggingnetworking
Control overall networking state and connectivityradio
Manage Wi-Fi and WWAN radio switchesconnection
Manage network connection profilesdevice
Manage network interfacesagent
Run as a NetworkManager secret or polkit agentmonitor
Observe NetworkManager activity in real-time
COMMON CONNECTION COMMANDS
nmcli connection show: List all connections
nmcli connection up: Activate a connection
nmcli connection down: Deactivate a connection
nmcli connection add: Create a new connection
nmcli connection modify: Change connection settings
nmcli connection delete: Remove a connection
nmcli connection import: Import a VPN connection
CAVEATS
The --ask flag prompts for passwords interactively. Use --show-secrets carefully as it displays sensitive information. The -t option with -f is useful for scripting.
HISTORY
nmcli is the command-line interface for NetworkManager, first released around 2004. It provides a way to manage network connections on systems without graphical interfaces or for automation.
SEE ALSO
nmtui(1), NetworkManager(8), nm-settings(5)
