opentofu/website/docs/cli/state/inspect.mdx
Janos a15a6c9657
Versioned docs: replacing docs links with relative variants (#1537)
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Signed-off-by: Roman Grinovski <roman.grinovski@gmail.com>
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
2024-04-24 13:24:30 +02:00

20 lines
749 B
Text

---
description: Commands that allow you to read and update state.
---
# Inspecting State
OpenTofu includes some commands for reading and updating state without taking
any other actions.
- [The `tofu state list` command](../commands/state/list.mdx)
shows the resource addresses for every resource OpenTofu knows about in a
configuration, optionally filtered by partial resource address.
- [The `tofu state show` command](../commands/state/show.mdx)
displays detailed state data about one resource.
- [The `tofu refresh` command](../commands/refresh.mdx) 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.