Convert a juju bundle to a diagram.
cargo install --git https://github.com/sed-i/juju-graph
Convert bundle to mermaid:
juju export-bundle | juju-graph mermaid
Output a subgraph containing only the given app and its immediate neighbors:
juju export-bundle | juju-graph mermaid --spotlight grafana
Render a mermaid.live image url:
juju export-bundle | juju-graph mermaid --url
Render svg from graphviz:
juju export-bundle | juju-graph graphviz | dot -Tsvg > bundle.svg
# Read from "bundle.yaml"
cargo run
# Pass via stdin
cargo run < bundle.yaml
# or
juju export-bundle | cargo run
cargo install --path .
juju-graph < bundle.yaml