2017-05-31 02:46:12 +02:00
|
|
|
---
|
|
|
|
layout: "commands-workspace"
|
|
|
|
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
|
|
|
|
|
|
|
|
Usage: `terraform workspace select [NAME]`
|
|
|
|
|
|
|
|
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".
|
|
|
|
```
|