Print the current Terraform CLI workspace name.

Section: Workspaces

Show current workspace

bash
bash
terraform workspace show
Explanation

Print the current Terraform CLI workspace name.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Workspaces
List workspaces
Show available Terraform CLI workspaces for the current configuration.
OpenIn sheetbashsame section
Create workspace
Create and switch to a new workspace.
OpenIn sheetbashsame section
Select workspace
Switch to an existing workspace.
OpenIn sheetbashsame section
Delete workspace
Delete a Terraform CLI workspace.
OpenIn sheetbashsame section
Import existing object
Associate an existing infrastructure object with a resource address in state.
OpenIn sheetbash1 tag match
Pull raw state JSON
Download the latest state and write it to a local file.
OpenIn sheetbash1 tag match