Forrest logo
back to the wpa_cli tool

wpa_cli:tldr:15e8d

wpa_cli: Add a network.
$ wpa_cli add_network ${number}
try on your machine

The command "wpa_cli add_network ${number}" is used to add a new network configuration to the wpa_supplicant software through the wpa_cli utility.

Here's a breakdown of the command:

  • "wpa_cli": It executes the wpa_cli command-line utility, which provides an interactive interface to control and configure the wpa_supplicant.

  • "add_network": It is the wpa_cli command that tells the wpa_supplicant to add a new network configuration.

  • "${number}": It is a placeholder for the network ID or number that specifies the index of the new network configuration. "${number}" should be replaced with an actual number when using the command.

By executing this command with a specific number, a new network configuration is created within the wpa_supplicant. This configuration can then be further modified by using additional wpa_cli commands, such as setting the SSID, password, authentication type, etc., for 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.
back to the wpa_cli tool