2017-05-31 02:46:12 +02:00
|
|
|
---
|
2020-10-27 01:58:30 +01:00
|
|
|
layout: "docs"
|
2017-05-31 02:46:12 +02:00
|
|
|
page_title: "Command: workspace select"
|
2018-12-21 03:18:13 +01:00
|
|
|
sidebar_current: "docs-commands-workspace-sub-select"
|
2017-05-31 02:46:12 +02:00
|
|
|
description: |-
|
|
|
|
The terraform workspace select command is used to choose a workspace.
|
|
|
|
---
|
|
|
|
|
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".
|
|
|
|
```
|