mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-16 07:01:11 -05:00
* 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>
22 lines
808 B
Plaintext
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.
|