terraform/website/docs/cli/state/inspect.mdx

23 lines
837 B
Plaintext
Raw Normal View History

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