mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-16 16:00:37 -05:00
* 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>
33 lines
689 B
Plaintext
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".
|
|
```
|