Eru.Tool 0.9.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Eru.Tool --version 0.9.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Eru.Tool --version 0.9.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Eru.Tool&version=0.9.1
                    
nuke :add-package Eru.Tool --version 0.9.1
                    

eru

eru is a CLI tool for sharing knowledge files between projects. Declare where your shared files live (a git repo), pull them in with a single command, and track everything in a lock file so they stay in sync.

  • Manifests — knowledge-source repos publish .eru/manifest.json to declare available files; consumers pull from it automatically
  • Collections — group related files into a named set and pull them all with one command
  • Tag-based pulls — --tag devops fetches everything tagged devops across all collections
  • Glob patterns — collection entries can use globs to pull multiple files in one reference (e.g. docs/*.md)
  • Lock file (.eru/eru.lock) records every pulled file: its origin, path, and content hash
  • Static site — eru site generate builds a self-contained HTML site for browsing and searching the local knowledge cache; eru site serve adds live reload and a search API
  • Dry-run mode on every write command
  • Global config (~/.config/eru/config.json) for sources and collections shared across all your repos

Requirements

Install

Install the Eru.Tool tool:

dotnet tool install --global Eru.Tool

Leave off --global to install locally in a repo instead.

Install the skill with skills.sh:

npx skills add dburriss/eru

The skill tells agents how to use the CLI.

Quick start

1. Initialise your repo

eru init

Creates .eru/config.json in the current directory.

2. Pull a file

Paste a GitHub or GitLab file URL directly:

eru add https://github.com/my-org/knowledge/blob/main/docs/adr-template.md

eru registers the source automatically, downloads the file, and records it in .eru/eru.lock.

Or pull by source name and path once a source is configured:

eru add knowledge:docs/adr-template.md

Or pull an entire curated collection:

eru add --collection onboarding-docs

3. Keep files up to date

eru sync

Fetches every file in .eru/eru.lock, compares content hashes, and overwrites anything that has drifted.


Commands

Command What it does
eru init Scaffold .eru/config.json in the current directory
eru init --global Create the global config at ~/.config/eru/config.json
eru add <path> Pull a file by source:path, bare filename, or full URL
eru add --collection <name> Pull all files in a named collection
eru add --tag <tag> Pull all files matching a tag
eru add --dryrun <path> Preview what would be pulled
eru search <terms> Search sources and the lock file
eru sync Re-fetch all tracked files and update drifted ones
eru sync --dryrun Preview what sync would change
eru source add <url> Register a git repo as a knowledge source
eru source list List configured knowledge sources
eru source view <name> Show details and files for a source
eru collection create <name> Create a new collection
eru collection add <name> -f <source:path> Add a file reference to a collection
eru manifest init Create .eru/manifest.json in a knowledge-source repo
eru manifest add <path> Add a file/glob entry to the manifest
eru manifest remove <path> Remove an entry from the manifest
eru manifest validate Check all manifest entries resolve to local files (alias: verify)
eru site generate [-o <dir>] Generate a static HTML site for browsing the local knowledge cache
eru site serve [-p <port>] Serve the site locally with live reload and a search API
eru okf validate <path> Check a directory tree for OKF §11 conformance
eru okf init <path> Create missing OKF index.md files
eru okf fix <path> Repair a directory tree so it passes OKF validation
eru mcp Start an MCP stdio server for AI agent use

For full argument details see docs/reference/cli.md.

Static site

eru site generate builds a self-contained HTML site from the local knowledge cache — browse and search all source files offline.

eru site serve does the same but also starts a local HTTP server with a live-reload SSE feed and a /api/search endpoint. The browser reconnects and reloads automatically whenever the cache is synced. See docs/reference/site-generation.md and docs/how-to/customize-the-generated-site.md.

MCP server

eru mcp exposes knowledge search and retrieval to AI agents (Claude, Copilot, Cursor, etc.) over the Model Context Protocol. See docs/how-to/set-up-the-mcp-server.md.

Documentation

Full documentation lives under docs/, organised by Diataxis: tutorials, how-to guides, reference, and explanation.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.16.1 93 11/7/2026
0.16.0 80 11/7/2026
0.15.1 92 11/5/2026
0.15.0 83 11/5/2026
0.14.0 116 11/2/2026
0.13.1 143 10/12/2026
0.13.0 124 10/12/2026
0.12.0 132 10/9/2026
0.11.1 125 10/8/2026
0.11.0 127 10/8/2026
0.10.0 131 10/5/2026
0.9.1 146 10/2/2026
0.9.0 139 10/2/2026
0.7.1 350 5/29/2026
0.7.0 273 5/29/2026
0.6.0 269 5/29/2026
0.5.1 266 5/29/2026
0.5.0 262 5/29/2026
0.4.0 264 5/29/2026
0.3.0 264 5/28/2026
Loading failed

Path handling on Windows: domain code built and split `/`-separated bundle and remote paths with `System.IO.Path`, which emits `\` on Windows and broke 69 tests in the release build; it now uses `/`-only helpers, and a test guards against reintroducing `Path.Combine`/`GetDirectoryName`/`GetFileName` in `Eru.Domain`