mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-04 17:00:50 -05:00
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com> Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
32 lines
639 B
Plaintext
32 lines
639 B
Plaintext
---
|
|
description: The tofu workspace select command is used to choose a workspace.
|
|
---
|
|
|
|
# Command: workspace select
|
|
|
|
The `tofu workspace select` command is used to choose a different
|
|
workspace to use for further operations.
|
|
|
|
## Usage
|
|
|
|
Usage: `tofu workspace select NAME [DIR]`
|
|
|
|
This command will select another workspace. The named workspace must already
|
|
exist.
|
|
|
|
The supported flags are:
|
|
|
|
* `-or-create` - If the workspace that is being selected does not exist, create it. Default is `false`.
|
|
|
|
## Example
|
|
|
|
```
|
|
$ tofu workspace list
|
|
default
|
|
* development
|
|
jsmith-test
|
|
|
|
$ tofu workspace select default
|
|
Switched to workspace "default".
|
|
```
|