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

Stars: 5.1k · Language: Go · License: GPL-3.0 · Categories: Dev Tools

- Repository: https://github.com/arduino/arduino-cli
- Website: https://arduino.github.io/arduino-cli/latest/
- Page: https://www.trmn.sh/tools/arduino-cli

## Install

- Homebrew: `brew install arduino-cli`

## Overview

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

```bash
# via Homebrew
brew install arduino-cli
```

## Alternatives

- [freeze](https://www.trmn.sh/tools/freeze.md): Generate PNG, SVG, and WebP images of code and terminal output with syntax highlighting and customizable styling. (Go, 4.9k stars)
- [Docker CLI](https://www.trmn.sh/tools/docker-cli.md): Source repository for the Docker command-line client, written in Go and built with docker buildx bake, with cross-platform and glibc/musl build targets. (Go, 6.1k stars)
- [vfox](https://www.trmn.sh/tools/vfox.md): Cross-platform, plugin-based version manager for runtimes such as Java, Node.js, Go, Python, Flutter and .NET, with per-project, per-shell and global versions. (Go, 4.0k stars)
- [Popeye](https://www.trmn.sh/tools/popeye.md): Read-only scanner that lints live Kubernetes clusters for misconfigurations, unused resources, and over/under allocation, with console, JSON, and HTML reports. (Go, 6.5k stars)
- [Krew](https://www.trmn.sh/tools/krew.md): Package manager for kubectl plugins: discover, install, and manage plugins from a central index, similar to apt, dnf, or brew. (Go, 7.0k stars)

---

Canonical: https://www.trmn.sh/tools/arduino-cli
