Directory Compare FCRS-1.0 About /llms.txt

Arduino CLI

$ arduino-cli Official Med Risk
Arduino · Code & DevOps · GPL-3.0 · macos / linux / windows · Reviewed:

arduino-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.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install arduino-cli
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports --format json, --no-color, --quiet, and non-interactive board/compile/core/lib workflows.

  • Official --format json and --no-color across subcommands
Trust & Safety 20 / 25

Read/compile operations are safe locally, while upload overwrites firmware on connected physical hardware.

  • Safe board list and compile; hardware flashing via explicit upload
Setup & Portability 14 / 15

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
Utility & Efficiency 13 / 15

Replaces the heavy desktop Arduino IDE with fast headless board detection, compilation, and library management.

  • Headless embedded build and flash pipeline with JSON diagnostics
Maintenance & Lineage 10 / 10

Official Arduino project (arduino/arduino-cli, 5.1k+ stars, 6.2k+ 90d Homebrew installs) under GPL-3.0.

  • Official arduino/arduino-cli repository
Docs & Verifiability 9 / 10

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

Auth Modes
No Auth Config File
Credential Storage

No authentication required for standard open-source cores and libraries; stores board index URLs and settings in arduino-cli.yaml.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

GPL-3.0 open-source and free official Arduino toolchain.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List connected Arduino boards as JSON
arduino-cli board list --format json

Detects attached USB/serial boards, ports, and matching FQBN identifiers in JSON.

Compile a sketch without flashing hardware
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

Upload compiled firmware to a connected board
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 json across board discovery, library search, compilation, and upload.
  • + Official Arduino-backed Go binary with mature CI/headless support.
  • + Clean separation between compile verification and upload hardware flashing.

Caveats & Pitfalls

  • ! Flashing wrong boards or serial ports via upload affects real connected hardware.
  • ! Third-party board cores still require downloading compiler toolchains via core install.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI

Related CLIs in Code & DevOps

View category hub →
esbuild 89/100
$ esbuild

Ultra-fast JavaScript and TypeScript bundler in Go with `--metafile` JSON graph output.

$ golangci-lint

Fast parallel Go linters runner aggregating dozens of analyzers (`run --output.json.path=stdout`).

$ task

Cross-platform Go task runner with `--list --json` introspection and `--dry` command previews.

Jujutsu 89/100
$ jj

Git-compatible VCS with automatic working-copy snapshots, operation log `jj undo`, and template `json()` output.

Buf 95/100
$ buf

Modern Protocol Buffers CLI for linting, breaking-change detection, formatting, and codegen with `--error-format=json`.

Ruff 95/100
$ ruff

Ultra-fast Rust Python linter and formatter with `--output-format=json` and `--diff` previews.