compile
Compile an Arduino sketch for a specified board FQBN without uploading. Produce build output to verify code before flashing.
Instructions
Compile a sketch for a board FQBN without uploading. Use arduino:avr:uno for Uno or arduino:mbed_portenta:envie_m7 for Portenta H7.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqbn | Yes | Fully Qualified Board Name, e.g. arduino:avr:uno | |
| clean | No | Clean build (recommended after Portenta link failures) | |
| verbose | No | Enable verbose compile output | |
| buildPath | No | Optional build output directory | |
| libraries | No | Path(s) to extra library folders (arduino-cli --libraries). For Ratchet use firmware/libraries. | |
| sketchPath | Yes | Path to sketch folder or .ino file |