2017-05-31 02:46:12 +02:00
|
|
|
---
|
2021-12-15 03:41:17 +01:00
|
|
|
page_title: 'Command: workspace list'
|
|
|
|
description: The terraform workspace list command is used to list all existing workspaces.
|
2017-05-31 02:46:12 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# Command: workspace list
|
|
|
|
|
|
|
|
The `terraform workspace list` command is used to list all existing workspaces.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-11-11 23:21:21 +01:00
|
|
|
Usage: `terraform workspace list [DIR]`
|
2017-05-31 02:46:12 +02:00
|
|
|
|
|
|
|
The command will list all existing workspaces. The current workspace is
|
|
|
|
indicated using an asterisk (`*`) marker.
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```
|
|
|
|
$ terraform workspace list
|
|
|
|
default
|
|
|
|
* development
|
|
|
|
jsmith-test
|
|
|
|
```
|