pio_pkg_install
Install a library, platform, or tool into a PlatformIO project and add it to platformio.ini. Provide a package spec (e.g., 'owner/repo@version') and optionally restrict to one environment.
Instructions
Install a library/platform/tool into the project and add it to platformio.ini (pio pkg install -l spec). spec examples: 'bblanchon/ArduinoJson@^7', 'adafruit/Adafruit NeoPixel', 'https://github.com/user/repo.git'. Restrict to one env with env=.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| spec | Yes | ||
| type | No | library | |
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||