The following persistent flags are available to the run command and its subcommands (plan, apply, destroy). These flags control diagram metadata, export behavior, cost visibility, and Terraform variable passing.
--title string The title for your diagram, will be displayed in the PDF output
--version string The diagram version, will be displayed in the PDF output
--out-dir string The directory the diagram should be exported to
--file-name string The name of the exported PDF
--post-apply bool Determines whether this run is after an apply and should update the latest docs for this infrastructure project
--export-pdf bool Determines whether a PDF export of the run Diagram is generated locally
--sync-to-backend bool Determines whether a PDF export of your diagram is stored in your state backend alongside your Terraform state. (Currently supports azurerm, gcs and s3)
--show-changes bool Determines whether the exported diagram highlights changes made in the latest Terraform plan or outputs a general diagram of the infrastructure
--show-drift bool Determines whether the exported diagram highlights resource drift detected by Terraform
--show-costs bool Determines whether the exported diagram includes cost information
--cost-mode string Determines which costs are shown. Can be 'delta' or 'total' (default: "delta")
--cost-period string Determines over which period costs are aggregated. Can be 'hour' or 'month' (default: "month")
--var-file stringArray Path to a var file to pass to Terraform. Can be specified multiple times.
--var stringArray A variable to pass to Terraform. Can be specified multiple times. (Format: --var='NAME=VALUE')
--plan-file string Path to an execution plan binary file. If passed, this will skip a plan run under the hood.
--plan-file-json string Path to an execution plan json file. If passed, this will skip a plan run under the hood.
--cost-usage-file string Path to an infracost usage file to be used for the cost breakdown
--config-file string Path to a specific Pluralith yaml config