bnl-diagrams 0.0.3

dotnet tool install --global bnl-diagrams --version 0.0.3
                    
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 bnl-diagrams --version 0.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=bnl-diagrams&version=0.0.3
                    
nuke :add-package bnl-diagrams --version 0.0.3
                    

DiagramGenerator CLI

Turns T-SQL stored procedures into navigable Mermaid flow diagrams, via the hosted DiagramGenerator API.

Install

dotnet tool install -g bnl-diagrams

Usage

bnl-diagrams ./procs/*.sql --output ./diagrams --key dg_live_yourapikeyhere

Get an API key from /dashboard/api-keys after subscribing. The key can also be set via the BNL_DIAGRAMS_API_KEY environment variable instead of --key.

Accepts one or more .sql files, directories, or glob patterns (e.g. ./procs/*.sql) in a single run - glob patterns are expanded by the CLI itself, not the shell, so they behave the same in PowerShell/cmd.exe as in bash/zsh.

Option Default Description
-o, --output <path> current directory Directory to write generated diagrams to.
-r, --recursive <bool> true Search subdirectories when an input path is a directory.
-f, --format <mermaid\|json> mermaid mermaid writes just the raw .mmd text; json writes a full envelope (graph + Mermaid text).
-q, --quiet off Suppress informational output.
-k, --key <key> — Your API key. Falls back to BNL_DIAGRAMS_API_KEY. Always required.

Full documentation: github.com/boxesnlines/diagramgenerator.

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.0.3 130 7/30/2026
0.0.2 108 7/30/2026
0.0.1 113 7/30/2026