mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com> Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
21 lines
758 B
Plaintext
21 lines
758 B
Plaintext
---
|
|
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](/docs/cli/commands/state/list)
|
|
shows the resource addresses for every resource OpenTofu knows about in a
|
|
configuration, optionally filtered by partial resource address.
|
|
|
|
- [The `tofu state show` command](/docs/cli/commands/state/show)
|
|
displays detailed state data about one resource.
|
|
|
|
- [The `tofu refresh` command](/docs/cli/commands/refresh) 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.
|