Espressif IDF Component Manager

3.0.1 · active · verified Sat Apr 11

The IDF Component Manager is a Python-based tool by Espressif that integrates with the ESP-IDF build system to download and manage components from the ESP Component Registry or Git repositories. It ensures that correct versions of all project dependencies are present during a CMake run. This library, currently at version 3.0.1, receives updates frequently, often tied to major ESP-IDF releases, with major version bumps indicating significant breaking changes.

Warnings

Install

Imports

Quickstart

The IDF Component Manager primarily operates through the `idf.py` command-line tool. This example demonstrates how to add a component dependency to your project, which automatically creates or updates the `idf_component.yml` manifest file and manages dependencies during the build process.

# Navigate to your ESP-IDF project directory
# Add a dependency to your main component (e.g., 'example/cmp')
idf.py add-dependency example/cmp

# Or create a manifest file and then build
# idf.py create-manifest
# Edit main/idf_component.yml to add dependencies like:
# dependencies:
#   espressif/json: '^1.0.0'
# Then, reconfigure and build your project:
# idf.py reconfigure
# idf.py build

view raw JSON →