From 5b444842a0905d254bec552f1acd4b7290b7e21c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 3 Dec 2016 15:29:04 -0800 Subject: [PATCH] website: update graph command --- website/source/docs/commands/graph.html.markdown | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/website/source/docs/commands/graph.html.markdown b/website/source/docs/commands/graph.html.markdown index 611738ec02..3098c51397 100644 --- a/website/source/docs/commands/graph.html.markdown +++ b/website/source/docs/commands/graph.html.markdown @@ -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