| title | state push | ||
|---|---|---|---|
| description | Push a Terraform state file to a workspace. | ||
| product | Coder | ||
| section | reference | ||
| source_url | https://coder.com/docs/reference/cli/state_push | ||
| fetched | 2026-09-26 | ||
| tags |
|
Push a Terraform state file to a workspace.
coder state push [flags] <workspace> <file>| Type | int |
Specify a workspace build to target by name. Defaults to latest.
| Type | bool |
Update the state without triggering a workspace build. Useful for state-only migrations.