bash nmcli cmd reporting Error: invalid extra argument '--autoconnect=false'
0
votes
0
answers
95
views
I want to import my vpn.conf file using nmcli and set **autoconnect to 0**, otherwise it defaults to 1
Apparently the correct way is by specifying **--autoconnect=false** flag, but this results in error.
nmcli connection import file vpn.conf type wireguard --autoconnect=false
Error: invalid extra argument '--autoconnect=false'
I am aware I can run a second command after, but this is extraneous, it should be settable upon import and saves running multiple commands
nmcli con mod connection.autoconnect no
Asked by Rachel1983
(23 rep)
Feb 8, 2025, 12:52 AM