| Crates.io | adrs |
| lib.rs | adrs |
| version | 0.5.1 |
| created_at | 2021-03-07 16:24:08.555252+00 |
| updated_at | 2026-01-25 06:09:03.173842+00 |
| description | Command line tool for managing Architecture Decision Records |
| homepage | |
| repository | https://github.com/joshrotenberg/adrs |
| max_upload_size | |
| id | 365289 |
| size | 129,422 |
A command-line tool for creating and managing Architecture Decision Records (ADRs).
doctor command finds issuesbrew install joshrotenberg/brew/adrs
cargo install adrs
docker run --rm -v $(pwd):/work ghcr.io/joshrotenberg/adrs init
Download from GitHub Releases.
# Initialize a new ADR repository
adrs init
# Create your first decision
adrs new "Use PostgreSQL for persistence"
# List all ADRs
adrs list
# Check repository health
adrs doctor
adrs [OPTIONS] <COMMAND>
Commands:
init Initialize a new ADR repository
new Create a new ADR
edit Edit an existing ADR
list List all ADRs
link Link two ADRs together
config Show configuration
doctor Check repository health
generate Generate documentation (toc, graph, book)
Options:
--ng Enable NextGen mode with YAML frontmatter
-C, --cwd <DIR> Run from a different directory
-h, --help Print help
-V, --version Print version
# Classic Nygard format (default)
adrs new "Use REST API"
# MADR 4.0.0 format
adrs new --format madr "Use GraphQL"
# Minimal template
adrs new --variant minimal "Quick decision"
# Supersede an existing ADR
adrs new --supersedes 2 "Use MySQL instead"
# Link related ADRs
adrs link 3 "Amends" 1 "Amended by"
# Table of contents
adrs generate toc > doc/adr/README.md
# Graphviz dependency graph
adrs generate graph | dot -Tsvg > doc/adr/graph.svg
# mdbook
adrs generate book && cd book && mdbook serve
adrs is built on the adrs-core library, which can be used independently:
[dependencies]
adrs-core = "0.5"
use adrs_core::Repository;
let repo = Repository::open(".")?;
for adr in repo.list()? {
println!("{}: {}", adr.number, adr.title);
}
See library documentation for more details.
Full documentation: joshrotenberg.github.io/adrs-book
Contributions welcome! See issues or open a new one.
MIT or Apache-2.0