2021-03-13 21:57:48 +01:00
|
|
|
# arduino-builder
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Compile arduino sketches.
|
2024-02-14 17:25:13 -03:00
|
|
|
> DEPRECATION WARNING: this tool is being phased out in favor of `arduino`.
|
2021-03-13 21:57:48 +01:00
|
|
|
> More information: <https://github.com/arduino/arduino-builder>.
|
|
|
|
|
|
|
|
- Compile a sketch:
|
|
|
|
|
|
|
|
`arduino-builder -compile {{path/to/sketch.ino}}`
|
|
|
|
|
2022-12-05 16:49:54 +10:00
|
|
|
- Specify the debug level (default: 5):
|
2021-03-13 21:57:48 +01:00
|
|
|
|
2022-12-05 16:49:54 +10:00
|
|
|
`arduino-builder -debug-level {{1..10}}`
|
2021-03-13 21:57:48 +01:00
|
|
|
|
|
|
|
- Specify a custom build directory:
|
|
|
|
|
|
|
|
`arduino-builder -build-path {{path/to/build_directory}}`
|
|
|
|
|
2024-08-03 16:25:10 +07:00
|
|
|
- Use a build option file, instead of specifying `-hardware`, `-tools`, etc. manually every time:
|
2021-03-13 21:57:48 +01:00
|
|
|
|
|
|
|
`arduino-builder -build-options-file {{path/to/build.options.json}}`
|
|
|
|
|
|
|
|
- Enable verbose mode:
|
|
|
|
|
|
|
|
`arduino-builder -verbose {{true}}`
|