terraform-show: add page (#21299)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2026-03-31 10:43:11 +03:00
committed by GitHub
parent a26597ad91
commit 62b5ac64a2
+28
View File
@@ -0,0 +1,28 @@
# terraform show
> Read and output a Terraform state or plan file in human-readable form.
> More information: <https://developer.hashicorp.com/terraform/cli/commands/show>.
- Show the current state:
`terraform show`
- Show a specific state file:
`terraform show {{path/to/terraform.tfstate}}`
- Show a specific plan file:
`terraform show {{path/to/file.tfplan}}`
- Output in JSON format:
`terraform show -json`
- Output a plan file in JSON format:
`terraform show -json {{path/to/file.tfplan}}`
- Write to a file without color codes:
`terraform show -no-color > {{path/to/file}}`