Core Commands
terraform initInitialize working directory
terraform planPreview changes
terraform applyApply changes
terraform destroyDestroy infrastructure
terraform validateValidate configuration
terraform fmtFormat configuration files
State Management
terraform state listList resources in state
terraform state show <resource>Show resource details
terraform state rm <resource>Remove resource from state
terraform import <addr> <id>Import existing resource
terraform refreshUpdate state with real infrastructure
Workspaces
terraform workspace listList workspaces
terraform workspace new <name>Create new workspace
terraform workspace select <name>Switch workspace
terraform workspace delete <name>Delete a workspace