stencila graph
Usage
stencila graph [OPTIONS] [PATH] [OUTPUT]Examples
# View the current workspace graph in a browser
stencila graph
# View a workspace graph in a browser
stencila graph .
# Start the graph server without opening a browser
stencila graph . --no-open --port 9010
# Export graph JSON inferred from the output extension
stencila graph . graph.json
# Export graph YAML inferred from the output extension
stencila graph report.smd graph.yaml
# Export graph YAML to stdout
stencila graph . - --to yaml
# Export a projected data flow graph as Graphviz DOT
stencila graph . graph.dot --view flow
# Export a detailed data flow graph including local symbols
stencila graph . graph.dot --view flow --detail high
# Export only the data flow connected to a matching script
stencila graph . graph.png --view flow --connected-to analysis.R
# Export the full connected component through shared inputs
stencila graph . graph.png --view flow --connected-to analysis.R --connected-mode undirected
# Export the same graph without directory/document containment clusters
stencila graph . graph.dot --view flow --containment none
# Export a projected software dependency graph as SVG using Graphviz
stencila graph . graph.svg --view depsArguments
[PATH] | . |
[OUTPUT] | - |
Options
--to | |
--view | auto |
--detail | medium |
--containment | |
--structure | truefalse |
--no-structure | truefalse |
--no-low-confidence | truefalse |
--no-collapse-citations | truefalse |
--no-c2pa | truefalse |
--no-git-authors | truefalse |
--connected-to | |
--connected-mode | directed |
-a, --address | 127.0.0.1 |
-p, --port | 9000 |
--no-open | truefalse |
--no-auth | truefalse |
--view
auto | |
all | |
flow | |
deps | |
cite | |
react |
--connected-mode
directed | |
undirected |
--to
json | |
yaml | |
dot | |
svg | |
png |
--detail
low | |
medium | |
high |
--containment
none | |
clusters | |
edges | |
both |