How to Connect Wi-Fi using Nmcli in Linux

Why use the Network-command-line Manager’s interface? Sometimes Ubuntu Network Manager behaves strangely, and you may be unable to connect…