arduino-builder

Command-line compiler for Arduino sketches

TLDR

Compile a sketch
$ arduino-builder -hardware [/usr/share/arduino/hardware] -tools [/usr/share/arduino/tools-builder] -libraries [/usr/share/arduino/libraries] -fqbn [arduino:avr:uno] [sketch.ino]
Compile with verbose output
$ arduino-builder -verbose -fqbn [arduino:avr:uno] [sketch.ino]

SYNOPSIS

arduino-builder [-hardware path] [-tools path] [-libraries path] [-fqbn board] [options] sketch

DESCRIPTION

arduino-builder is the command-line tool that compiles Arduino sketches. It was the build system used by Arduino IDE and can be invoked separately for automated builds.The tool handles preprocessing, compilation, and linking of Arduino sketches with required libraries and core files.

PARAMETERS

-hardware path

Hardware definitions directory
-tools path
Tools (compilers, uploaders) directory
-libraries path
Libraries directory
-fqbn board
Fully qualified board name
-build-path dir
Build output directory
-verbose
Verbose output
-warnings level
Warning level (none, default, more, all)
-prefs key=value
Build preferences

INSTALL

sudo apt install arduino-builder
yay -S arduino-builder

CAVEATS

Deprecated in favor of arduino-cli. Requires specifying multiple paths. Board packages must be installed separately.

HISTORY

arduino-builder was developed as a standalone build tool extracted from the Arduino IDE. It has been superseded by arduino-cli for most use cases.

SEE ALSO

arduino(1), arduino-cli(1), avr-gcc(1)

RESOURCES

Source code · Homepage