arduino-cli

Command-line tool for Arduino boards: board and library managers, sketch builder, board detection, and uploader, usable from a shell or machine interfaces.

install· Homebrew

Arduino CLI provides board and library management, sketch compilation, board detection, and uploading from the terminal. It lets developers use local editors and shell scripts for Arduino-compatible projects, and exposes machine-readable interfaces for other tools.

A typical workflow begins with arduino-cli core update-index to refresh available platforms and arduino-cli board list to inspect connected boards. Install the matching platform core, select the board identifier, then compile and upload the sketch. arduino-cli sketch new creates a sketch directory, while the library commands manage project dependencies.

Configuration can be stored in an arduino-cli.yaml file created by arduino-cli config init. Commands provide their own help, and JSON output supports scripting. It suits embedded developers and hobbyists who want repeatable command-line builds and uploads instead of relying on an open IDE. Board support, upload settings, and required toolchains depend on the selected platform.

Installation

# via Homebrew
brew install arduino-cli

Alternatives & related tools

add a badge to your README

Maintain arduino-cli? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/arduino-cli.svg)](https://www.trmn.sh/tools/arduino-cli?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/arduino-cli?utm_source=badge"><img src="https://www.trmn.sh/badge/arduino-cli.svg" alt="Featured on trmn" height="20"></a>