# 使用 Homebrew, apt, Nix 安装 adr-tools

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

## 安装

```sh
sudo av install brew:adr-tools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install adr-tools
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install adr-tools
```

  证据: Debian stable package indexes: adr-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#adr-tools
```

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

## 软件包事实

- **软件包键:** brew:adr-tools
- **软件包管理器:** Homebrew
- **版本:** 3.0.0
- **来源摘要:** CLI tool for working with Architecture Decision Records
- **主页:** <https://github.com/npryce/adr-tools>
- **仓库:** <https://github.com/npryce/adr-tools>
- **最后更新:** 2026-05-26T23:37:49-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- _adr_add_link (别名)
- _adr_autocomplete (别名)
- _adr_commands (别名)
- _adr_dir (别名)
- _adr_file (别名)
- _adr_generate_graph (别名)
- _adr_generate_toc (别名)
- _adr_help (别名)
- _adr_help_new (别名)
- _adr_links (别名)
- _adr_remove_status (别名)
- _adr_status (别名)
- _adr_title (别名)
- adr (别名)
- adr-config (别名)
- adr-generate (别名)
- adr-help (别名)
- adr-init (别名)
- adr-link (别名)
- adr-list (别名)
- adr-new (别名)
- adr-upgrade-repository (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ADR Tools is Nat Pryce's shell-based command-line toolkit for creating and maintaining Architecture Decision Records in a source tree. It became one of the reference implementations for teams that wanted ADRs as simple numbered Markdown files rather than a hosted documentation system.

### 项目历史

The project records its own first ADR on 2016-02-12, deciding to use Architecture Decision Records for its architecture decisions. Its README positions the tool around a log of ADRs, with Markdown records stored under a project subdirectory, defaulting to `doc/adr`.

ADR Tools deliberately uses Unix shell scripts. The project ADR directory includes decisions such as implementing the tool as shell scripts, using a single command with subcommands, storing records in Markdown, invoking `adr-config` for installation-specific configuration, and using ISO-8601 dates.

The 2018 release series added repository upgrades, ISO-8601 date format support, arbitrary links between ADRs, graph visualisation output, generated tables of contents, bash completion, better help text, Git Bash support on Windows, and parent-directory search for ADR directories.

### 采用历史

ADR Tools adopted the same source-control-native posture as ADRs themselves: its install documentation recommends Homebrew on macOS, release archives or Git on Linux/macOS, Git Bash or WSL on Windows, and shell autocomplete installation where supported.

The provided package metadata shows distribution through Homebrew, Debian, Ubuntu, and Nix. The GitHub repository's large star and fork counts also reflect broad recognition among architecture-documentation users, but its day-to-day adoption is usually invisible because the generated ADR files live inside other projects' repositories.

### 使用方式

The common workflow is `adr init` to create an ADR directory, `adr new` to create a numbered Markdown record, and `adr help` for subcommands. The README says new records are opened in the user's editor through `VISUAL` or `EDITOR`.

Teams use it to keep architectural decisions close to code, review them like any other text change, and link or supersede older decisions as architecture changes. Generated graphs and tables of contents make it useful beyond the first few records.

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

ADR Tools is package-nerd significant because it is a tiny shell distribution that turns an architectural practice into a Unix command. Its behavior is easy to audit, easy to vendor, and easy for package managers to ship without a runtime stack beyond POSIX-ish shell tooling.

It also shaped conventions that other tools follow, especially the default `doc/adr` directory and numbered Markdown filenames. That convention is visible in adr-viewer, which defaults to the same path because ADR Tools generates it.

### 时间线

- 2016: Project ADR 1 recorded the use of Architecture Decision Records.
- 2016: Early ADRs chose shell scripts, a single command with subcommands, and Markdown format.
- 2018: Version 2.0.0 added ISO-8601 dates and repository upgrade support.
- 2018: Version 2.1.0 added arbitrary links and Graphviz history/relationship output.
- 2018: Version 2.2.0 added better help, bash autocomplete, and Git Bash support.
- 2018: Version 3.0.0 added parent-directory ADR discovery and graph layout improvements.

### Related projects

- adr-viewer consumes ADR directories and defaults to ADR Tools' `doc/adr` path.
- Michael Nygard's ADR article is linked from the README as the conceptual source for the record format and practice.

### 来源

- <https://github.com/npryce/adr-tools#readme>
- <https://github.com/npryce/adr-tools/releases>
- <https://github.com/npryce/adr-tools/tree/master/doc/adr>
- <https://raw.githubusercontent.com/npryce/adr-tools/master/INSTALL.md>
- <https://raw.githubusercontent.com/npryce/adr-tools/master/doc/adr/0001-record-architecture-decisions.md>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - adr-tools - 3.0.0-2: normalized package name match | Debian stable package indexes: adr-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tools for working with a log of Architecture Decision Records | https://github.com/npryce/adr-tools
- Nix - adr-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/ad/adr-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - adr-tools - 3.0.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: adr-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tools for working with a log of Architecture Decision Records | https://github.com/npryce/adr-tools


## 相关链接

- [adr-tools](https://pkg.so/zh-hans/pkg/npm/adr-tools/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

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