Files
opentf/website/docs/cli/state/inspect.mdx
Kuba Martin 4d665a0091 Update website/docs/cli. (#171)
* Initial renaming, rewriting and cleaning up wave for the CLI docs.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Remove tutorial references.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Post-review fixes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

---------

Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-08-25 11:09:18 +02:00

22 lines
808 B
Plaintext

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