nmcli-connection
manages NetworkManager connection profiles
TLDR
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 connectiontype: Connection type (ethernet, wifi, vpn, bridge, etc.)con-name: Custom connection nameip4: IPv4 address with prefixgw4: IPv4 gateway addressip6: IPv6 address with prefixgw6: IPv6 gateway addressipv4.method: auto, manual, or disabledipv6.method: auto, manual, or ignoreipv4.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.
