# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 air

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

## 安装

```sh
sudo av install brew:air
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install air
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install air
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#air
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/air
```

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

- winget (92%):

```sh
winget install --id Posit.Air -e
```

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

## 软件包事实

- **软件包键:** brew:air
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/air>
- **版本:** 0.10.0
- **来源摘要:** Fast and opinionated formatter for R code
- **主页:** <https://posit-dev.github.io/air/>
- **仓库:** <https://github.com/posit-dev/air>
- **上游文档:** <https://posit-dev.github.io/air>
- **许可证:** MIT
- **源码归档:** <https://github.com/posit-dev/air/archive/refs/tags/0.10.0.tar.gz>
- **最后更新:** 2026-06-19T20:43:13Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- air (cli)
- air (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.10.0
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://github.com/posit-dev/air
- 检测到的最新版本: 0.10.0 (当前)
## 项目历史与用法

Air is Posit's Rust-written formatter and language server for R code. It packages a formatter-first workflow familiar from Prettier, Ruff, Biome, and rust-analyzer into the R ecosystem, with both CLI and editor/LSP entry points.

### 项目历史

The project is developed under the posit-dev GitHub organization and its README describes it as an R formatter and language server written in Rust. The project documentation presents a small CLI surface, a configuration file, and editor integration rather than a broad framework.

Air's own acknowledgements tie its design to earlier R and non-R tooling: styler for R style-guide formatting, rust-analyzer for language-server expectations, and Biome for language-agnostic syntax-tree and formatter infrastructure.

### 采用历史

Air's installation story quickly grew beyond source builds: the README documents standalone installers for macOS, Linux, and Windows, plus uv, Homebrew, Pixi, conda-forge, and mise paths. The Homebrew and conda-forge packages are explicitly described as community-maintained, which is a useful signal that packaging arrived alongside broader R-tooling interest rather than only inside Posit's own installer channel.

The public GitHub releases show active 0.x development through 2025 and 2026, including 0.10.0 published on 2026-06-19. In package-manager terms it is still a young tool, but it already has the familiar shape of a modern formatter binary: fast install scripts, a single `air` executable, and optional editor integration.

### 使用方式

Typical CLI use is `air format path/to/file.R`, either from a globally installed binary or via one-shot execution through uv, Pixi, or mise. For editor users, Air also runs as a language server, so the same package can serve both batch formatting and editor-on-save workflows.

Configuration is intentionally local and simple: the documented names are `air.toml` and `.air.toml`, keeping it in the same mental category as formatter configs such as `.prettierrc`, `ruff.toml`, or `biome.json`.

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

Air matters to package nerds because it is part of the wider trend of single-purpose, native-speed formatter binaries replacing slower language-hosted developer tools. It brings that trend to R while still acknowledging the established styler/tidyverse style-guide lineage.

The package is also interesting because Homebrew is not the sole distribution story: the official README calls out uv, Pixi, conda-forge, mise, and standalone installers. That makes it a compact example of a modern developer CLI trying to meet users across several package-manager cultures.

### 时间线

- 2025: Public 0.x releases and Posit documentation establish Air as an R formatter and language server.
- 2025-10-21: GitHub release 0.8.0 published.
- 2026-06-19: GitHub release 0.10.0 published.

### Related projects

- styler is the R formatter explicitly credited as prior art and inspiration.
- Biome, rust-analyzer, Prettier, and Ruff are cited by Air as non-R influences for formatter and language-server design.

### 来源

- <https://api.github.com/repos/posit-dev/air/releases?per_page=5>
- <https://github.com/posit-dev/air>
- <https://posit-dev.github.io/air>
- <https://posit-dev.github.io/air/configuration.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


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

- Unix: air.toml, .air.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** air
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** go-air
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - air: normalized package name match | nixpkgs package indexes: pkgs/by-name/ai/air/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - air: normalized package name match | MacPorts ports tree: devel/air/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/air: normalized package name match | Scoop official bucket manifest trees: bucket/air.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Posit.Air: normalized package name match | Windows Package Manager source index: Posit.Air from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [alejandra](https://www.automicvault.com/zh-hans/pkg/brew/alejandra/) - Shares av.db curated category or tags: cli, code-formatting, code-quality, developer-tools, formatter.
- [google-java-format](https://www.automicvault.com/zh-hans/pkg/brew/google-java-format/) - Shares av.db curated category or tags: cli, code-formatting, code-quality, developer-tools, formatter.
- [astyle](https://www.automicvault.com/zh-hans/pkg/brew/astyle/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [black](https://www.automicvault.com/zh-hans/pkg/brew/black/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [cbfmt](https://www.automicvault.com/zh-hans/pkg/brew/cbfmt/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [darker](https://www.automicvault.com/zh-hans/pkg/brew/darker/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [djhtml](https://www.automicvault.com/zh-hans/pkg/brew/djhtml/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [findent](https://www.automicvault.com/zh-hans/pkg/brew/findent/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [php-cs-fixer](https://www.automicvault.com/zh-hans/pkg/brew/php-cs-fixer/) - Local package facts share a topical domain. Shared terms: cli, code, code-formatting, code-quality, developer.

## Combined YAML source

View the package source record on GitHub. [combined/air.yml](https://github.com/automic-vault/db/blob/main/combined/air.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
