You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/website/docs/cli/commands/workspace/select.mdx

38 lines
1.2 KiB

---
page_title: terraform workspace select` command reference
description: The terraform workspace select command selects a workspace.
---
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
> [!IMPORTANT]
> **Documentation Update:** Product documentation previously located in `/website` has moved to the [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs) repository, where all product documentation is now centralized. Please make contributions directly to `web-unified-docs`, since changes to `/website` in this repository will not appear on developer.hashicorp.com.
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
# `terraform workspace select` command
The `terraform workspace select` selects a different workspace to use for further operations.
## Usage
Usage: `terraform workspace select NAME [DIR]`
This command will select another workspace. The named workspace must already
exist.
The supported flags are:
* `-or-create` - If the workspace that is being selected does not exist, create it. Default is `false`.
## Example
```
$ terraform workspace list
default
* development
jsmith-test
$ terraform workspace select default
Switched to workspace "default".
```