# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop, winget 安装 arduino-cli

查看 arduino-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:arduino-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install arduino-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install arduino-cli
```

  证据: MacPorts ports tree: devel/arduino-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add arduino-cli
```

  证据: Alpine Linux edge package indexes: arduino-cli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#arduino-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/ar/arduino-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S arduino-cli
```

  证据: Arch Linux sync databases: arduino-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install arduino-cli
```

  证据: Chocolatey community package catalog: arduino-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','another-redis-desktop-manager'

- Scoop (92%):

```sh
scoop install main/arduino-cli
```

  证据: Scoop official bucket manifest trees: bucket/arduino-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id ArduinoSA.CLI -e
```

  证据: Windows Package Manager source index: ArduinoSA.CLI from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:arduino-cli
- **软件包管理器:** Homebrew
- **版本:** 1.5.1
- **来源摘要:** Arduino command-line interface
- **主页:** <https://arduino.github.io/arduino-cli/latest/>
- **仓库:** <https://github.com/arduino/arduino-cli>
- **最后更新:** 2026-07-26T13:19:52+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- arduino-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.5.1
## 项目历史与用法

Arduino CLI is Arduino's official command-line and machine-interface tool for board management, library management, sketch builds, board detection, and uploads.

### 项目历史

The official GitHub repository was created on 2018-08-08. The README describes Arduino CLI as an all-in-one command-line solution for Arduino-compatible boards and platforms, covering the core tasks that the Arduino IDE historically wrapped in a graphical workflow.

The project is written in Go and ships versioned user docs, a command reference, nightly builds, a gRPC reference, and security policy. Its release stream in the official GitHub API shows the 1.x line active through 2026.

### 采用历史

Arduino CLI is broadly packaged: the input package facts list Homebrew, Alpine, Chocolatey, MacPorts, Nix, Arch, Scoop, and winget. That breadth fits its role as the scriptable substrate for Arduino workflows in CI, editors, build systems, and headless devices.

The tool matters because it decouples Arduino development from the IDE. Package users can install one binary, initialize indexes, install cores and libraries, compile sketches, upload firmware, and integrate Arduino boards into reproducible automation.

### 使用方式

Typical commands include `arduino-cli config init`, board and library manager operations, `arduino-cli compile`, and `arduino-cli upload`. The README points users to installation docs, a getting-started guide, and a full command reference.

The default config file is `arduino-cli.yaml`. Official docs say the default data directory is `${HOME}/.arduino15` on Linux and other Unix-like systems, `${HOME}/Library/Arduino15` on macOS, and `${HOME}/AppData/Local/Arduino15` on Windows, so the default config paths follow from those data directories.

### 为什么软件包爱好者会关心

Arduino CLI is important package-manager infrastructure because it turns a huge embedded ecosystem into a stable command-line interface that other tools can call.

It is also a good example of an official vendor CLI that replaced ad hoc IDE automation with a documented binary, config schema, command reference, nightly builds, and multi-OS package distribution.

### 时间线

- 2018-08-08: GitHub repository created.
- 2021-09-22: Earliest release returned in the current GitHub releases API page for this batch, 0.19.1-rc1.
- 2026-06-05: Latest GitHub release observed for this batch, v1.5.1.

### Related projects

- The CLI serves the Arduino boards/platforms ecosystem and Arduino-compatible board packages.
- The docs expose command and gRPC interfaces used by editors, CI systems, and other developer tools around Arduino.

### 来源

- <https://api.github.com/repos/arduino/arduino-cli>
- <https://api.github.com/repos/arduino/arduino-cli/releases>
- <https://arduino.github.io/arduino-cli/latest/>
- <https://arduino.github.io/arduino-cli/latest/configuration/>
- <https://github.com/arduino/arduino-cli>


## 安全说明

没有找到 arduino-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: ${HOME}/.arduino15/arduino-cli.yaml
- macOS: ${HOME}/Library/Arduino15/arduino-cli.yaml
- Windows: ${HOME}/AppData/Local/Arduino15/arduino-cli.yaml
## 其他软件包管理器记录

- Nix - arduino-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/ar/arduino-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - arduino-cli - 1.5.1-r1: normalized package name match | Alpine Linux edge package indexes: arduino-cli from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Arduino command line tool | https://github.com/arduino/arduino-cli
- pacman - arduino-cli - 1.4.1-1: normalized package name match | Arch Linux sync databases: arduino-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Arduino command line interface | https://github.com/arduino/arduino-cli
- MacPorts - arduino-cli: normalized package name match | MacPorts ports tree: devel/arduino-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - arduino-cli: normalized package name match | Chocolatey community package catalog: arduino-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','another-redis-desktop-manager'
- Scoop - main/arduino-cli: normalized package name match | Scoop official bucket manifest trees: bucket/arduino-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - ArduinoSA.CLI: normalized package name match | Windows Package Manager source index: ArduinoSA.CLI from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/arduino-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/arduino-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
