dotADR 0.2.0
See the version list below for details.
dotnet tool install --global dotADR --version 0.2.0
dotnet new tool-manifest
dotnet tool install --local dotADR --version 0.2.0
#tool dotnet:?package=dotADR&version=0.2.0
nuke :add-package dotADR --version 0.2.0
dotADR
.NET tool to create Architectural Decision Records in .NET solutions.
Requirements
dotADR targets .NET 8 and requires .NET 8 or later.
Install
Install as a local tool
If the repository does not already have a tool manifest, create one:
dotnet new tool-manifest
Install the tool:
dotnet tool install dotADR
Install as a global tool
dotnet tool install -g dotADR
Features
For the examples below, use the dotnet dotadr command if you installed it as a local tool, or dotadr if you
installed it as a global tool.
Initialize the ADR Directory
Creates the ADR directory, adds the default template and a first decision record to the directory, and saves the ADR
directory to a dotadr.json file.
DESCRIPTION:
Initialize the ADR directory
USAGE:
dotnet dotadr init [OPTIONS]
EXAMPLES:
dotnet dotadr init
dotnet dotadr init -d ./doc/arch/adr -o true
dotnet dotadr init -t ./doc/templates/adr-template.md
dotnet dotadr init --debug true --logfile log.txt
OPTIONS:
DEFAULT
-h, --help Prints help information
--debug Enable debug logging for troubleshooting
--logfile The file to send the log output to
-d, --directory ./doc/adr The directory to initialize
-t, --template Path to a custom template to use for the initialization
-o, --overwrite false Whether to overwrite existing files
Add a New Decision Record
Adds a new decision record in the configured ADR directory using the template.md template file, or a custom template
when -t/--template is provided.
DESCRIPTION:
Add a new decision record
USAGE:
dotnet dotadr add [title] [OPTIONS]
dotnet dotadr new [title] [OPTIONS]
EXAMPLES:
dotnet dotadr add "Implement Circuit Breaker Pattern for External Service Calls"
dotnet dotadr add "Separate Read and Write Data Models" -s 002
dotnet dotadr add "Use a Custom ADR Template" -t ./doc/templates/adr-template.md
dotnet dotadr add "Use Database Per Service Pattern" --debug true --logfile log.txt
dotnet dotadr new "Implement Request Rate Limiting"
ARGUMENTS:
[title] The title of the new decision record
OPTIONS:
-h, --help Prints help information
--debug Enable debug logging for troubleshooting
--logfile The file to send the log output to
-s, --supersedes The ID of the decision record this decision record supersedes
-t, --template Path to a custom template to use for the new decision record
The ADR Template
The default template is based on Documenting Architecture Decisions and looks like this:
# {{ID}} {{TITLE}}
* Status: Draft
* Date: {{DATE}}
* Supersedes: {{SUPERSEDES}}
## Context
## Decision
## Consequences
The decision record that is added upon initialization looks like this:
# 001 Use Architectural Decision Records
* Status: Draft
* Date: 2025-08-19
## Context
## Decision
## Consequences
The line containing the {{SUPERSEDES}} variable is removed unless the --supersedesoption is provided.
Changing the Template
Feel free to customize the template, but consider keeping the Status and Supersedes sections as-is to maintain full
feature compatibility. You can choose to not include a variable, in that case it is simply ignored.
Superseding a Decision Record
In order for the superseding functionality to work you will need to keep the "* Status: xxxx" and
"* Supersedes: {{SUPERSEDES}}" sections in the template more or less intact.
dotnet dotadr add "Superseding Decision Record" -s 002
When a record supersedes another record:
- In the new record the
{{SUPERSEDES}}variable is replaced by a link to the superseded record. - In the superseded record "* Status: [current status]" is replaced by "* Status: [current status] - Superseded by " + a link to the new superseding decision record and the current date.
Example
* Supersedes: [002](002-the-superseded-decision.md)
* Status: Accepted - Superseded by [077](077-the-superseding-decision.md) 2025-08-21
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0 | 117 | 11/4/2026 |
| 0.3.0-beta.11 | 62 | 11/3/2026 |
| 0.2.0 | 205 | 9/18/2026 |
| 0.1.0 | 717 | 8/27/2025 |
| 0.1.0-beta.9 | 218 | 8/26/2025 |