dotADR 0.3.0-beta.11
See the version list below for details.
dotnet tool install --global dotADR --version 0.3.0-beta.11
dotnet new tool-manifest
dotnet tool install --local dotADR --version 0.3.0-beta.11
#tool dotnet:?package=dotADR&version=0.3.0-beta.11&prerelease
nuke :add-package dotADR --version 0.3.0-beta.11
dotADR
.NET tool to create and maintain Architectural Decision Records in .NET solutions.
Requirements
dotADR targets .NET 10 and requires .NET 10 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.
Command Overview
USAGE:
dotnet dotadr [OPTIONS] <COMMAND>
EXAMPLES:
dotnet dotadr init
dotnet dotadr init -d ./doc/arch/adr -o
dotnet dotadr init -t ./doc/templates/adr-template.md
dotnet dotadr init --debug --logfile log.txt
dotnet dotadr add "Implement Circuit Breaker Pattern for External Service Calls"
OPTIONS:
-h, --help Prints help information
-v, --version Prints version information
COMMANDS:
init Initialize the ADR directory
add <title> Add a new decision record. Alias: new
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
dotnet dotadr init -t ./doc/templates/adr-template.md
dotnet dotadr init --debug --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 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. Alias: new
USAGE:
dotnet dotadr add <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 --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
Global Options
All commands accept -h/--help, --debug and --logfile. -v/--version is available on the root command.
--debug enables debug logging for troubleshooting. It can be passed as a bare flag; --debug false explicitly
disables it. The --debug=true and --debug=false forms are also accepted.
--logfile sends log output to the given file, specified either as --logfile path or --logfile=path.
Logging is configured after the command line has been parsed, so arguments that fail to parse are reported on the
console but are not written to --logfile.
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 --supersedes option 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 | net10.0 is compatible. 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 |