Print password and QR code for the current Wi-Fi network

nmcli device

  • Hardware device management with NetworkManager.
    This subcommand can also be called with `nmcli d`.
    More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

nmcli device wifi show-password

click the source code to copy install nmcli device on any operating system with command-not-found.com