nmcli-connection
TLDR
List all NetworkManager connections
SYNOPSIS
nmcli connection {show|up|down|add|modify|delete|reload|load|import|export} [ARGUMENTS]
DESCRIPTION
nmcli connection manages NetworkManager connection profiles. It can list, activate, deactivate, create, modify, and delete network connection configurations including Ethernet, Wi-Fi, VPN, and other connection types.
COMMANDS
show [id]
List connections or show details of a specific connectionup id|uuid
Activate a connectiondown id|uuid
Deactivate a connectionadd
Create a new connection profilemodify id|uuid
Change connection propertiesdelete id|uuid
Remove a connection profilereload
Reload all connection files from diskload filename
Load a connection fileimport type TYPE file FILE
Import an external connection (e.g., VPN)export id
Export a connection profile
COMMON ADD OPTIONS
ifname: Interface name to bind the connection
type: Connection type (ethernet, wifi, vpn, bridge, etc.)
con-name: Custom connection name
ip4: IPv4 address with prefix
gw4: IPv4 gateway address
ip6: IPv6 address with prefix
gw6: IPv6 gateway address
ipv4.method: auto, manual, or disabled
ipv6.method: auto, manual, or ignore
ipv4.dns: DNS server addresses
CAVEATS
Connection names with spaces require quoting. Use UUIDs when multiple connections share the same name. Changes made with modify take effect on the next activation unless --temporary is used.
HISTORY
Part of the nmcli command-line interface for NetworkManager. Provides scriptable network configuration management.


