Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 760 Bytes

state_push.md

File metadata and controls

39 lines (28 loc) · 760 Bytes
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
coder
reference

Push a Terraform state file to a workspace.

Usage

coder state push [flags] <workspace> <file>

Options

-b, --build

Type int

Specify a workspace build to target by name. Defaults to latest.

-n, --no-build

Type bool

Update the state without triggering a workspace build. Useful for state-only migrations.