Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install adr-tools

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install adr-tools

Debian stable package indexes · adr-tools · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#adr-tools

nixpkgs package indexes · pkgs/by-name/ad/adr-tools/package.nix · 来源: api.github.com

概览

软件包摘要

CLI tool for working with Architecture Decision Records

命令和别名

  • _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

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:record

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
_adr_add_linkcli全局可执行文件
_adr_autocompletecli全局可执行文件
_adr_commandscli全局可执行文件
_adr_dircli全局可执行文件
_adr_filecli全局可执行文件
_adr_generate_graphcli全局可执行文件
_adr_generate_toccli全局可执行文件
_adr_helpcli全局可执行文件
_adr_help_newcli全局可执行文件
_adr_linkscli全局可执行文件
_adr_remove_statuscli全局可执行文件
_adr_statuscli全局可执行文件
_adr_titlecli全局可执行文件
adrcli全局可执行文件
adr-configcli全局可执行文件
adr-generatecli全局可执行文件
adr-helpcli全局可执行文件
adr-initcli全局可执行文件
adr-linkcli全局可执行文件
adr-listcli全局可执行文件
adr-newcli全局可执行文件
adr-upgrade-repositorycli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.0.0
管理器更新时间2026-05-26
本地数据OK
上游当前
检测到的最新版本3.0.0

https://github.com/npryce/adr-tools

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:adr-tools
版本3.0.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/adr-tools
主页https://github.com/npryce/adr-tools
仓库https://github.com/npryce/adr-tools
上游文档https://github.com/npryce/adr-tools#readme
许可证CC-BY-4.0
源码归档https://github.com/npryce/adr-tools/archive/refs/tags/3.0.0.tar.gz
最后更新2026-05-26T23:37:49-04:00
Pulseupdated
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameadr-tools
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

adr-tools 3.0.0-2

tools for working with a log of Architecture Decision Records

https://github.com/npryce/adr-tools

sudo apt install adr-tools
  • Section: devel
  • Architecture: all
  • normalized package name match
  • 匹配方式:Adr Tools
Debian stable package indexes · deb.debian.org · Debian stable package indexes: adr-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

adr-tools

nix profile install nixpkgs#adr-tools
  • normalized package name match
  • 匹配方式:Adr Tools
nixpkgs package indexes · api.github.com · 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 apt95%

adr-tools 3.0.0-2

tools for working with a log of Architecture Decision Records

https://github.com/npryce/adr-tools

sudo apt install adr-tools
  • Section: universe/devel
  • Architecture: all
  • normalized package name match
  • 匹配方式:Adr Tools
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: adr-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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