2020-10-27 02:15:36 +01:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Inspecting State - Terraform CLI"
|
|
|
|
---
|
|
|
|
|
|
|
|
# Inspecting State
|
|
|
|
|
|
|
|
Terraform includes some commands for reading and updating state without taking
|
|
|
|
any other actions.
|
|
|
|
|
2021-01-19 22:43:01 +01:00
|
|
|
- [The `terraform state list` command](/docs/cli/commands/state/list.html)
|
2020-10-27 02:15:36 +01:00
|
|
|
shows the resource addresses for every resource Terraform knows about in a
|
|
|
|
configuration, optionally filtered by partial resource address.
|
|
|
|
|
2021-01-19 22:43:01 +01:00
|
|
|
- [The `terraform state show` command](/docs/cli/commands/state/show.html)
|
2020-10-27 02:15:36 +01:00
|
|
|
displays detailed state data about one resource.
|
|
|
|
|
2021-01-19 22:43:01 +01:00
|
|
|
- [The `terraform refresh` command](/docs/cli/commands/refresh.html) updates
|
2020-10-27 02:15:36 +01:00
|
|
|
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.
|