github.com/lamielle/terraform@v0.3.2-0.20141121070651-81f008ba53d5/website/source/docs/commands/graph.html.markdown (about) 1 --- 2 layout: "docs" 3 page_title: "Command: graph" 4 sidebar_current: "docs-commands-graph" 5 description: |- 6 The `terraform graph` command is used to generate a visual representation of either a configuration or execution plan. The output is in the DOT format, which can be used by GraphViz to generate charts. 7 --- 8 9 # Command: graph 10 11 The `terraform graph` command is used to generate a visual 12 representation of either a configuration or execution plan. 13 The output is in the DOT format, which can be used by 14 [GraphViz](http://www.graphviz.org) to generate charts. 15 16 17 ## Usage 18 19 Usage: `terraform output [options] [input]` 20 21 By default, `output` scans the current directory for the configuration 22 and generates the output for that configuration. However, a path to 23 another configuration or an execution plan can be provided. Execution plans 24 provide more details on creation, deletion or changes. 25 26 ## Generating Images 27 28 The output of `terraform graph` is in the DOT format, which can 29 easily be converted to an image by making use of `dot` provided 30 by GraphViz: 31 32 ``` 33 $ terraform graph | dot -Tpng > graph.png 34 ``` 35 36 Alternatively, the web-based [GraphViz Workspace](http://graphviz-dev.appspot.com) 37 can be used to quickly render DOT file inputs as well. 38 39 Here is an example graph output: 40  41