# state pull Pull a Terraform state file from a workspace. ## Usage ```console coder state pull [flags] [file] ``` ## Options ### -b, --build | | | |------|------------------| | Type | int | Specify a workspace build to target by name. Defaults to latest.