Initializes your Terraform working directory. This command is always the first command that should be run.
Validates the Terraform files in your directory for syntax errors and internal consistency.
Shows you the changes that Terraform will apply to your infrastructure without actually applying them. It’s useful for previewing changes.
Applies the changes required to reach the desired state of the configuration. You’ll be prompted for confirmation unless you use the `-auto-approve` flag.
Applies the changes without prompting for interactive approval. Use with caution in production environments.
Destroys the infrastructure managed by Terraform. You’ll be prompted for confirmation unless you use the `-auto-approve` flag.
Destroys the infrastructure without prompting for interactive approval. Use with extreme caution.
Reformats your Terraform configuration files to a canonical format. It helps maintain consistency.
Shows the current state of your managed infrastructure.
Lists all the resources currently tracked in the Terraform state.
Shows the attributes of a specific resource in the Terraform state.
Removes a resource from the Terraform state. This does not destroy the actual infrastructure, and should be used with caution.
Retrieves the current state from the configured backend and outputs it to the console.
Pushes a local state file to the configured backend. Use with caution as it can overwrite the remote state.
Shows the providers required for the current configuration.
Shows the version of Terraform you are using.
Advanced Terraform Commands
Generates a visual representation of the dependency graph of your resources.
Imports an existing infrastructure resource into your Terraform state, allowing you to manage it with Terraform.
Selects an existing Terraform workspace.
Creates a new Terraform workspace.
Lists all available Terraform workspaces.
Deletes a Terraform workspace.
Displays the output values of your Terraform configuration.
Displays the value of a specific output in your Terraform configuration.