2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
|
|
|
title: state push
|
|
|
|
|
description: Push a Terraform state file to a workspace.
|
|
|
|
|
---
|
|
|
|
|
|
2023-03-23 17:42:20 -05:00
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
|
|
|
|
|
|
Push a Terraform state file to a workspace.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
coder state push [flags] <workspace> <file>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
### -b, --build
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|------|------------------|
|
2023-03-23 17:42:20 -05:00
|
|
|
| Type | <code>int</code> |
|
|
|
|
|
|
|
|
|
|
Specify a workspace build to target by name. Defaults to latest.
|
2026-01-12 15:16:59 +01:00
|
|
|
|
|
|
|
|
### -n, --no-build
|
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
|------|-------------------|
|
|
|
|
|
| Type | <code>bool</code> |
|
|
|
|
|
|
|
|
|
|
Update the state without triggering a workspace build. Useful for state-only migrations.
|