RepoReadmeRewriter.CLI
1.0.0
dotnet tool install --global RepoReadmeRewriter.CLI --version 1.0.0
dotnet new tool-manifest
dotnet tool install --local RepoReadmeRewriter.CLI --version 1.0.0
#tool dotnet:?package=RepoReadmeRewriter.CLI&version=1.0.0
nuke :add-package RepoReadmeRewriter.CLI --version 1.0.0
RepoReadmeRewriter CLI
A CLI tool that rewrites relative README asset links (GitHub/GitLab) to absolute URLs.
Install
dotnet tool install -g RepoReadmeRewriter.CLI
Usage
Run the tool (binary name reporeadmerewriter) from your repository root. Use --help to see required arguments and available options. Supply --config <path> when you want to remove/replace sections or words before rewriting links.[^config]
Notes
- Outputs a detailed help table with required/optional options, aliases, and default/completion values when present.
- Use the CLI to prepare README assets before publishing packages so links remain valid off-repo.
[^config]:
--config is a JSON file that is deserialized into RemoveReplaceSettings (the same structure described in NugetRepoReadme/README.md, but consumed here by the CLI). The file can define any combination of:
json { "removeCommentIdentifiers": { "start": "remove-start", "end": "remove-end" }, "removalsOrReplacements": [ { "commentOrRegex": "Comment", "start": "remove-start 1", "end": "remove-end 1", "replacementText": "visible text" }, { "commentOrRegex": "Regex", "start": "# Remove", "replacementFromFile": true, "replacementText": "replacements/block.md" } ], "removeReplaceWordsFilePaths": [ "remove-replace-words.txt" ] }
- removeCommentIdentifiers maps to RemoveCommentIdentifiers and removes everything between matching HTML comments (end is optional; missing end removes to EOF).
- Each entry in removalsOrReplacements becomes a RemovalOrReplacement. commentOrRegex is Comment (HTML comment markers) or Regex (line-based regex). start is required; end is optional; replacementText is optional. If replacementFromFile is true, replacementText must be a file path; the loader resolves it relative to the config file first, then the project directory.
- removeReplaceWordsFilePaths lists files parsed with the same �Removals / Replacements� format shown in NugetRepoReadme/README.md (headers Removals / Replacements separated by ---; odd lines are patterns, even lines are replacements).
- If replacement text contains {readme_marker}, it is substituted with the absolute URL of the repository README being processed.
- The loader fails with Config contained no configuration when all sections are empty.
| 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 |
|---|---|---|
| 1.0.0 | 91 | 1/13/2026 |