HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

arduino-builder — Compile arduino sketches. DEPRECATION WARNING: this tool is being phased out in favor of `arduino`.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandarduinosketchescompileclideprecationarduino-builderwarning

Problem

How to use the arduino-builder command: Compile arduino sketches. DEPRECATION WARNING: this tool is being phased out in favor of arduino. More information: <https://github.com/arduino/arduino-builder>.

Solution

arduino-builder — Compile arduino sketches. DEPRECATION WARNING: this tool is being phased out in favor of arduino. More information: <https://github.com/arduino/arduino-builder>.

Compile a sketch:
arduino-builder -compile {{path/to/sketch.ino}}


Specify the debug level (default: 5):
arduino-builder -debug-level {{1..10}}


Specify a custom build directory:
arduino-builder -build-path {{path/to/build_directory}}


Use a build option file, instead of specifying -hardware, -tools, etc. manually every time:
arduino-builder -build-options-file {{path/to/build.options.json}}


Enable verbose mode:
arduino-builder -verbose {{true}}

Code Snippets

Compile a sketch

arduino-builder -compile {{path/to/sketch.ino}}

Specify the debug level (default: 5)

arduino-builder -debug-level {{1..10}}

Specify a custom build directory

arduino-builder -build-path {{path/to/build_directory}}

Use a build option file, instead of specifying `-hardware`, `-tools`, etc. manually every time

arduino-builder -build-options-file {{path/to/build.options.json}}

Enable verbose mode

arduino-builder -verbose {{true}}

Context

tldr-pages: common/arduino-builder

Revisions (0)

No revisions yet.