terraform workspace
Manage Terraform workspaces for multiple environments. More information: https://developer.hashicorp.com/terraform/cli/commands/workspace.
- List all workspaces:
terraform workspace list
- Show the name of the current workspace:
terraform workspace show
- Create a new workspace:
terraform workspace new
- Select an existing workspace:
terraform workspace select
- Select a workspace, creating it if it doesn't exist:
terraform workspace select -or-create
- Delete a workspace:
terraform workspace delete
- Delete a workspace, even if it is tracking resources:
terraform workspace delete -force
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
