mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-14 10:01:05 -05:00
Several `terraform` subcommands include sub-sub-commands; with our old sidebar system, viewing those took you to an isolated "island" nav sidebar, away from the main docs. The new navigation will adopt all these pages, so we don't need to exile the reader to odd places.
25 lines
776 B
Markdown
25 lines
776 B
Markdown
---
|
|
layout: "docs"
|
|
page_title: "Command: state pull"
|
|
sidebar_current: "docs-commands-state-sub-pull"
|
|
description: |-
|
|
The `terraform state pull` command is used to manually download and output the state from remote state.
|
|
---
|
|
|
|
# Command: state pull
|
|
|
|
The `terraform state pull` command is used to manually download and output
|
|
the state from [remote state](/docs/state/remote.html). This command also
|
|
works with local state.
|
|
|
|
## Usage
|
|
|
|
Usage: `terraform state pull`
|
|
|
|
This command will download the state from its current location and
|
|
output the raw format to stdout.
|
|
|
|
This is useful for reading values out of state (potentially pairing this
|
|
command with something like [jq](https://stedolan.github.io/jq/)). It is
|
|
also useful if you need to make manual modifications to state.
|