mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-28 17:34:24 -06:00
fb6ff1f440
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
854 B
854 B
layout | page_title | description |
---|---|---|
docs | Inspecting State - Terraform CLI | Commands that allow you to read and update state. |
Inspecting State
Terraform includes some commands for reading and updating state without taking any other actions.
-
The
terraform state list
command shows the resource addresses for every resource Terraform knows about in a configuration, optionally filtered by partial resource address. -
The
terraform state show
command displays detailed state data about one resource. -
The
terraform refresh
command updates state data to match the real-world condition of the managed resources. This is done automatically during plans and applies, but not when interacting with state directly.