Options (5)
booleanList all NetworkManager connections (shows name, UUID, type, and device)
Example:
nmcli {{[c|connection]}}booleanActivate a connection
Example:
nmcli {{[c|connection]}} {{[u|up]}} {{uuid}}booleanDeactivate a connection
Example:
nmcli {{[c|connection]}} {{[d|down]}} {{uuid}}booleanCreate an auto-configured dual stack connection
Example:
nmcli {{[c|connection]}} {{[a|add]}} ifname {{interface_name}} type {{ethernet}} ipv4.method {{auto}} ipv6.method {{auto}}booleanCreate a VPN connection using OpenVPN from an OVPN file
Example:
nmcli {{[c|connection]}} {{[i|import]}} type {{openvpn}} file {{path/to/vpn_config.ovpn}}Examples (7)
List all NetworkManager connections (shows name, UUID, type, and device)
nmcli [c|connection]Create an auto-configured dual stack connection
Create a static IPv6-only connection
Create a static IPv4-only connection
made by @shridhargupta | data from tldr-pages