Show Build Graph

September 18, 2025 ยท View on GitHub

Build task graphs can be visualized by the following scripts

See scripts help comments for the details and available customizations.

Show-BuildGraph is available at the PSGallery and may be installed and updated as

Install-Script Show-BuildGraph
Update-Script Show-BuildGraph

These commands use web resources by default and may be used right away

Show-BuildGraph
Show-BuildMermaid

SVG images for this page are created using Graphviz dot, e.g. by the command below. Tooltips, e.g. task synopses, are not shown here but available for other renderers.

Show-BuildGraph -Dot -Output MyBuildScript.svg

FarNet

See Building FarNet Showcase for more complex build graphs with several scripts involved and graphs created with task clusters, e.g. by this command:

Show-BuildGraph -Cluster

Invoke-Build

Here is the task graph created for the build script of this project. Tasks with own code are shown as boxes, tasks that simply trigger other tasks are shown as ovals.

Show-BuildGraph

Invoke-Build

Mdbc

This example (Mdbc's build script) shows some more features

  • Task call numbers can be shown.
  • Call edges can go from top to bottom.
  • Safe references are shown as dotted edges.
Show-BuildGraph -Number -Code ""

Mdbc

Pode

This example shows some more complex graph of pode.build.ps1

Pode