2017-05-31 02:46:12 +02:00
|
|
|
---
|
2021-11-23 00:57:25 +01:00
|
|
|
layout: "docs"
|
|
|
|
page_title: "Command: workspace select"
|
|
|
|
sidebar_current: "docs-commands-workspace-sub-select"
|
|
|
|
description: |-
|
|
|
|
The terraform workspace select command is used to choose a workspace.
|
2017-05-31 02:46:12 +02:00
|
|
|
---
|
|
|
|
|
2017-12-05 17:54:25 +01:00
|
|
|
# Command: workspace select
|
2017-05-31 02:46:12 +02:00
|
|
|
|
|
|
|
The `terraform workspace select` command is used to choose a different
|
|
|
|
workspace to use for further operations.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-11-11 23:21:21 +01:00
|
|
|
Usage: `terraform workspace select NAME [DIR]`
|
2017-05-31 02:46:12 +02:00
|
|
|
|
|
|
|
This command will select another workspace. The named workspace must already
|
|
|
|
exist.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```
|
|
|
|
$ terraform workspace list
|
|
|
|
default
|
|
|
|
* development
|
|
|
|
jsmith-test
|
|
|
|
|
|
|
|
$ terraform workspace select default
|
|
|
|
Switched to workspace "default".
|
|
|
|
```
|