website: update graph command

This commit is contained in:
Mitchell Hashimoto 2016-12-03 15:29:04 -08:00
parent 26ac58bc97
commit 5b444842a0
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 8 additions and 4 deletions

View File

@ -25,16 +25,20 @@ The graph is outputted in DOT format. The typical program that can
read this format is GraphViz, but many web services are also available
to read this format.
The -type flag can be used to control the type of graph shown. Terraform
creates different graphs for different operations. See the options below
for the list of types supported. The default type is "plan" if a
configuration is given, and "apply" if a plan file is passed as an
argument.
Options:
* `-draw-cycles` - Highlight any cycles in the graph with colored edges.
This helps when diagnosing cycle errors.
* `-module-depth=n` - The maximum depth to expand modules. By default this is
-1, which will expand all modules.
* `-no-color` - If specified, output won't contain any color.
* `-verbose` - Generate a verbose, "worst-case" graph, with all nodes
for potential operations in place.
* `-type=plan` - Type of graph to output. Can be: plan, plan-destroy, apply, legacy.
## Generating Images