Find the name of the adapter you wish to configure
sudo nmcli connection show
run the following commands:
sudo nmcli connection modify <interface> ipv4.method auto
sudo nmcli connection connection up <interface>
ipv4.method
sets how the interface obtains its IP address,auto
orstatic
.