7 Terraform commands you should know

I am a DevOps Engineer passionate about learning and writing about my experiences on my journey to be a world class Cloud/Devops Engineer. I am passionate about sharing knowledge, learning and mastering cloud technologies, making sweet treats, and putting smiles on the faces of people.
terraform apply -refresh-onlycommand creates a plan whose goal is only to update the Terraform state and any root module output values to match changes made to remote objects outside of Terraform.terraform fmtcommand is used to rewrite Terraform configuration files to a canonical format and style.terraform importcommand used to bring existing resources to terraforms control. Note to use this command, you must first create a configuration file for the existing resource first, then run terraform import name of resourceterraform workspace newcommand is used to create a new workspace to use for operations.terraform workspace selectcommand is used to choose a different workspace to use for further operations.terraform showcommand is used to provide human-readable output from a state or plan file. This can be used to inspect a plan to ensure that the planned operations are expected, or to inspect the current state as Terraform sees it.terraform logincommand can be used to automatically obtain and save an API token for Terraform Cloud, Terraform Enterprise, or any other host that offers Terraform services.
