# workspace update

Update a workspace

#### Usage

```
 terrakube workspace update [flags]
```

#### Flags

```
  -b, --branch string              Branch of the workspace
  -h, --help                       help for update
      --id string                  Id of the workspace (required)
  -n, --name string                Name of the workspace (required)
      --organization-id string     Id of the organization (required)
  -s, --source string              Source of the workspace
  -t, --terraform-version string   Terraform Version use in the workspace
```

#### Examples

Update Terraform version in workspace

```
terrakube workspace update --organization-id 312b4415-806b-47a9-9452-b71f0753136e --id 38b6635a-d38e-46f2-a95e-d00a416de4fd -t 0.14.0
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.terrakube.io/2.19.0/user-guide/terrakube-cli/commands/terrakube-workspace/workspace-update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
