Command: workspace select

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".

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/commands/workspace/select.html