Files
opentf/website/docs/cli/commands/workspace/select.mdx
Kuba Martin 4d665a0091 Update website/docs/cli. (#171)
* Initial renaming, rewriting and cleaning up wave for the CLI docs.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* More renaming.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Remove tutorial references.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Post-review fixes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

---------

Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-08-25 11:09:18 +02:00

33 lines
689 B
Plaintext

---
page_title: 'Command: workspace select'
description: The opentf workspace select command is used to choose a workspace.
---
# Command: workspace select
The `opentf workspace select` command is used to choose a different
workspace to use for further operations.
## Usage
Usage: `opentf 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
```
$ opentf workspace list
default
* development
jsmith-test
$ opentf workspace select default
Switched to workspace "default".
```