#19152·esp-idf

Improve port selection in tools (idf.py, monitor, esptool) (IDFGH-18366)

Author: nebkatCreated Sep 29, 2026Updated Sep 30, 2026
LabelsType: Feature RequestStatus: Opened

Is your feature request related to a problem?

ESP-IDF tools perform device addressing based on the system port (COM? on windows, /dev/cu.usbmodem???? on macOS). These are sensitive to device connection order, which USB port is being used, etc. In practice developers usually rely on trial-and-error to find the device they are interested in.

This can be problematic if e.g. an idf.py flash is performed and the wrong device is auto-selected, at best causing confusion and some wasted time, or at worst unintentional data loss.

Of course, in general this is not a major problem, but it is a daily source of friction when developing across multiple devices.

Describe the solution you'd like.

Interactive port selection Provide an interactive picker that lists the available devices and allows the user to select one. Initial proposal for --pick https://github.com/espressif/esp-idf/pull/19150 (closed)

Selection by MAC Allow the user to specify a MAC address to connect to e.g. idf.py -m 7c:2c:67:92:79:c0.

For USB-JTAG devices this is available without rebooting into bootloader, and for other devices it can either be probed with a reboot or rejected as not found.

Selection by alias Provide a way to define aliases for ports and/or devices, so that one can do e.g. idf.py -a MyFavouriteDevice. This one may be overkill, and could probably be achieved already with a symlink or @ expansion.

Describe alternatives you've considered.

External tooling such as my idftool already provide these features:

ImageImageImage

Additional context.

No response