Arduino CLI
$ arduino-cli Official Med Riskarduino-cli (arduino/arduino-cli) is Arduino's official command-line tool providing complete board discovery, core/library management, sketch compilation, and firmware upload without the IDE GUI. Nearly all commands emit structured --format json output suited for CI and embedded-coding agents.
brew install arduino-cli Mature official --format json across board, compile, core, and lib subcommands works directly in shell pipelines without MCP overhead.
At a Glance
- Command
- $ arduino-cli
- FCRS-1.0 Score
- 89/100 (Good)
- Evidence Tier
- Medium Confidence
- CLI vs MCP
- CLI Preferred vs MCP
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --format json, --no-color, --quiet, and non-interactive board/compile/core/lib workflows.
- Official
--format jsonand--no-coloracross subcommands
Read/compile operations are safe locally, while upload overwrites firmware on connected physical hardware.
- Safe
board listandcompile; hardware flashing via explicitupload
Official single Go binary distributed via brew install arduino-cli, Go, and cross-platform releases.
- Homebrew, Go, and official binaries for macOS, Linux, and Windows
Replaces the heavy desktop Arduino IDE with fast headless board detection, compilation, and library management.
- Headless embedded build and flash pipeline with JSON diagnostics
Official Arduino project (arduino/arduino-cli, 5.1k+ stars, 6.2k+ 90d Homebrew installs) under GPL-3.0.
- Official
arduino/arduino-clirepository
Comprehensive official documentation, JSON output guides, and gRPC/CLI reference at arduino.github.io/arduino-cli.
- Official docs at arduino.github.io/arduino-cli/latest/
Security, Auth & Guardrails
No authentication required for standard open-source cores and libraries; stores board index URLs and settings in arduino-cli.yaml.
GPL-3.0 open-source and free official Arduino toolchain.
# arduino-cli Agent Rules - Always append `--format json --no-color` for machine-readable output. - Run `arduino-cli board list --format json` and `arduino-cli compile` before `upload`. - Confirm the target serial port (`-p`) and `--fqbn` before flashing physical hardware.
Agent-Ready Command Recipes
Safe Read-Only Queries
arduino-cli board list --format json
Detects attached USB/serial boards, ports, and matching FQBN identifiers in JSON.
arduino-cli compile --fqbn arduino:avr:uno ./Blink --format json
Verifies firmware compilation and reports compiler diagnostics and binary sizes as JSON.
Controlled Writes & Previews
arduino-cli upload -p /dev/cu.usbmodem101 --fqbn arduino:avr:uno ./Blink --format json
Flashes the verified sketch onto the physical microcontroller over serial/USB.
Strengths for Agents
- + Consistent
--format jsonacross board discovery, library search, compilation, and upload. - + Official Arduino-backed Go binary with mature CI/headless support.
- + Clean separation between
compileverification anduploadhardware flashing.
Caveats & Pitfalls
- ! Flashing wrong boards or serial ports via
uploadaffects real connected hardware. - ! Third-party board cores still require downloading compiler toolchains via
core install.
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Code & DevOps
View category hub →Ultra-fast JavaScript and TypeScript bundler in Go with `--metafile` JSON graph output.
Fast parallel Go linters runner aggregating dozens of analyzers (`run --output.json.path=stdout`).
Cross-platform Go task runner with `--list --json` introspection and `--dry` command previews.
Git-compatible VCS with automatic working-copy snapshots, operation log `jj undo`, and template `json()` output.
Modern Protocol Buffers CLI for linting, breaking-change detection, formatting, and codegen with `--error-format=json`.