ProjGraph.Cli
0.2.0
There is a newer version of this package available.
See the version list below for details.
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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ProjGraph.Cli --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.