Skip to main content

Output the result to a local file

#194 #654 tfcmt >= v4.2.0

tfcmt normally posts the result of terraform plan and terraform apply to GitHub Pull Requests as a comment. But tfcmt also supports outputting the result to a local file by --output option.

tfcmt plan:

$ tfcmt --output plan -- terraform plan

tfcmt apply:

$ tfcmt --output apply -- terraform apply

If a specified file doesn't exist, the file is created. If the file already exist, the file content is appended.


If you want to overwrite the file content instead of appending, please make the file empty before running tfcmt.


: > # Make the file empty
tfcmt --output plan -- terraform plan

Metadata isn't embedded.