- Basic CLI Features
- Command: workspace
- Command: workspace select
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 isfalse
.
Example
$ opentf workspace list
default
* development
jsmith-test
$ opentf workspace select default
Switched to workspace "default".