Network Manager

    • UI manager: nmtui
    • List wifi: nmcli dev wifi
    • List connections: nmcli connection show
    • Disconnect: nmcli connection down <name>
    • Restart radio: nmcli radio wifi off && nmcli radio wifi on

    Connect on wifi through cli

    # connecting KNOWN AP
    nmcli connection up '<name>' --ask
    
    # connecting NEW AP
    nmcli device wifi connect '<bssid>' password 'xxx'
    
    # if you dont want to leak password on cli
    nmcli device wifi connect '<bssid>' --ask