LinuxCommandLibrary

arduino-builder

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]
copy
Compile with verbose output
$ arduino-builder -verbose -fqbn [arduino:avr:uno] [sketch.ino]
copy

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

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

Copied to clipboard