Skip to main content

CLI Commands

ESP WiFi Config provides a set of serial console commands via the ESP-IDF Console component. These are useful for development, debugging, and headless device configuration.

Enabling the CLI

Add to your sdkconfig.defaults:

CONFIG_WIFI_CFG_ENABLE_CLI=y

Your application must initialize the ESP Console REPL. See the with_cli example for a complete setup.

Commands

CommandDescription
wifi statusShow connection status
wifi scanScan available networks
wifi listList saved networks
wifi add <ssid> [password] [priority]Add network
wifi del <ssid>Remove network
wifi connect [ssid]Connect (auto or specific)
wifi disconnectDisconnect
wifi ap startStart SoftAP
wifi ap stopStop SoftAP
wifi resetFactory reset
wifi var get <key>Get variable
wifi var set <key> <value>Set variable