Graph Command
You can create a visual dependency graph diagram with:
terraspace all graph
Let’s say that generates this dependency graph:
You can also generate subgraphs with the target nodes highlighted:
terraspace all graph a2 b2
If you would like only to show the subgraph, use the --no-full
option:
terraspace all graph a2 b2 --no-full
Graph Demo Repo
Here’s also an example repo to show how dependencies work: Terraspace Graph Demo.
Text Format
You can also print out the dependencies in a tree text form with the --format text
option.
$ terraspace all graph --format text
a1
├── b1
│ └── c1
└── b2
├── c1
└── c2
└── d1
└── e1
$