Forrest logo
back to the nmcli tool

nmcli-device:tldr:edd3e

nmcli-device: Connect to the Wi-Fi network with a specified name and password.
$ nmcli device wifi connect ${ssid} password ${password}
try on your machine

This command is used to connect to a Wi-Fi network using the nmcli (Network Manager Command Line Interface) tool.

  • nmcli: It's a command-line tool for managing Network Manager in Linux operating systems.

  • device wifi connect: This part of the command specifies the action of connecting to a Wi-Fi network.

  • ${ssid}: The ssid variable is the name or identifier of the Wi-Fi network you want to connect to. It should be replaced with the actual name of the network (e.g., "MyNetwork").

  • password: It is a keyword specifying that the following argument is the password for the Wi-Fi network.

  • ${password}: The password variable is the actual password for the Wi-Fi network. It should be replaced with the actual password of the network.

When you run this command, it sends a request to Network Manager to connect to the specified Wi-Fi network with the provided SSID and password. If the credentials are valid, you will be connected to the network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • connect to hidden wifi network?
back to the nmcli tool