LinuxCommandLibrary

arduino

TLDR

Start Arduino IDE

$ arduino
copy
Open a sketch
$ arduino [sketch.ino]
copy
Compile a sketch
$ arduino --verify [sketch.ino]
copy
Upload to board
$ arduino --upload [sketch.ino]
copy
Specify board and port
$ arduino --board [arduino:avr:uno] --port [/dev/ttyACM0] --upload [sketch.ino]
copy

SYNOPSIS

arduino [--verify|--upload] [--board board] [--port port] [sketch]

DESCRIPTION

arduino is the Arduino Integrated Development Environment (IDE) for programming Arduino microcontroller boards. It provides a code editor, compiler, and upload functionality for Arduino sketches.
The command-line interface enables headless compilation and upload, useful for CI/CD pipelines and scripting.

PARAMETERS

--verify

Compile sketch without uploading
--upload
Compile and upload to board
--board fqbn
Fully qualified board name
--port port
Serial port for upload
--pref name=value
Set preference
--save-prefs
Save preferences and exit
--get-pref name
Print preference value
--install-boards package:platform
Install board package
--install-library name
Install library

CAVEATS

Board support packages may need installation for non-AVR boards. Serial port permissions may require user group configuration on Linux. Legacy IDE differs from Arduino IDE 2.0.

HISTORY

The Arduino project was started at the Ivrea Interaction Design Institute in 2005. The IDE has been the primary development environment for Arduino boards since the platform's inception.

SEE ALSO

Copied to clipboard