mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-17 19:00:37 -05:00
874 B
874 B
layout, page_title, description
| layout | page_title | description |
|---|---|---|
| docs | Inspecting State - Terraform CLI | Documentation about 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 listcommand shows the resource addresses for every resource Terraform knows about in a configuration, optionally filtered by partial resource address. -
The
terraform state showcommand displays detailed state data about one resource. -
The
terraform refreshcommand 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.