pio_project_init
Initialize a new PlatformIO project or add an environment to an existing one by specifying project directory and board, with optional framework and platformio.ini options.
Instructions
Create a new PlatformIO project (or add an environment to an existing one) with pio project init. Give an absolute project_dir, a board id from pio_list_boards, and optionally a framework (arduino, espidf, stm32cube, zephyr, ...). project_options are extra platformio.ini keys like 'monitor_speed=115200' or 'lib_deps=bblanchon/ArduinoJson'. Never hand-write platformio.ini for a new project; use this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | Yes | ||
| framework | No | ||
| project_dir | Yes | ||
| project_options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||