ProjGraph.Cli 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global ProjGraph.Cli --version 0.2.0
                    
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 ProjGraph.Cli --version 0.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ProjGraph.Cli&version=0.2.0
                    
nuke :add-package ProjGraph.Cli --version 0.2.0
                    

ProjGraph CLI

Command-line tool for visualizing .NET project dependencies and generating Entity Relationship Diagrams from EF Core DbContext files.

Installation

dotnet tool install -g ProjGraph.Cli

Commands

visualize - Project Dependencies

Visualize solution/project dependencies as ASCII tree or Mermaid diagram.

# ASCII tree (default)
projgraph visualize ./MySolution.sln

# Mermaid diagram
projgraph visualize ./MySolution.slnx --format mermaid > graph.mmd

Supports: .sln, .slnx, .csproj

Example output:

graph TD
    MyApp.Web --> MyApp.Core
    MyApp.Infrastructure --> MyApp.Core

erd - Entity Relationship Diagrams

Generate Mermaid ERD from EF Core DbContext files.

# Generate ERD from DbContext
projgraph erd ./Data/MyDbContext.cs

# Save to file
projgraph erd ./Data/MyDbContext.cs > database-schema.md

Features:

  • Detects entities, properties, and relationships
  • Shows primary keys, foreign keys, and constraints
  • Supports inheritance and base classes
  • Extracts MaxLength, Required, and other data annotations
  • Detects Fluent API configurations
  • Handles many-to-many relationships with join tables

Example output:

erDiagram
    Publisher {
        int Id PK
        string Name "required, max:200"
        string Country "string? | max:100"
    }
    Book {
        int Id PK
        string Title "required, max:300"
        int PublisherId FK "required"
    }

    Publisher ||--o{ Book : "Books"

Requirements

  • .NET 10.0 or later

License

Licensed under the terms specified in the repository.

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.2.2 30 1/20/2026
0.2.1 36 1/19/2026
0.2.0 42 1/16/2026
0.1.3 43 1/15/2026
0.1.2 43 1/14/2026
0.1.1 38 1/14/2026
0.1.0 45 1/14/2026