Terraform

Terraform commands for infrastructure as code

23 commands
Search & Copy
Save Favorites
23
Total Commands
100%
Free Access
Lightning Fast

Available Commands

Click on any command to copy it instantly

23 commands available
23 of 23
Resources

Learn Terraform

Master infrastructure as code with Terraform

terraform

Initialize Terraform

Initialize a Terraform working directory

terraform init
terraform
init
setup
terraform

Validate Configuration

Check the syntax and validity of Terraform files

terraform validate
terraform
validate
check
terraform

Plan Terraform Changes

Show proposed changes to infrastructure

terraform plan
terraform
plan
preview
terraform

Apply Terraform Changes

Apply changes to reach desired state

terraform apply
terraform
apply
execute
terraform

Destroy Infrastructure

Delete all resources managed by Terraform

terraform destroy
terraform
destroy
delete
terraform

Show Terraform State

Display current Terraform state or plan

terraform show
terraform
state
show
terraform

List Resources in State

Show all resources in the Terraform state file

terraform state list
terraform
state
list
terraform

Show Resource Details

Display detailed information about a specific resource

terraform state show aws_instance.my_instance
terraform
state
show
terraform

Display Outputs

Show output variables from state

terraform output
terraform
output
state
terraform

Import Existing Resource

Bring existing resources into Terraform management

terraform import aws_instance.my_instance i-1234567890abcdef0
terraform
import
resource
terraform

Refresh State

Update state with real infrastructure

terraform refresh
terraform
state
refresh
terraform

Check Provider Versions

Show all provider versions in configuration

terraform providers
terraform
providers
versions
terraform

Show Resource Graph

Generate dependency graph of resources

terraform graph
terraform
graph
dependency
terraform

Plan Destroy

Show what would be destroyed

terraform plan -destroy
terraform
plan
destroy
terraform

List Workspaces

Show available Terraform workspaces

terraform workspace list
terraform
workspace
list
terraform

Create New Workspace

Create a new Terraform workspace

terraform workspace new dev
terraform
workspace
create
terraform

Select Workspace

Switch to a different workspace

terraform workspace select dev
terraform
workspace
select
terraform

Terraform Console

Interactive console for Terraform expressions

terraform console
terraform
console
interactive
terraform

Generate Documentation

Generate markdown documentation for modules

terraform-docs markdown .
terraform
docs
module
terraform

Mark Resource for Recreation

Mark a resource to be destroyed and recreated on next apply

terraform taint aws_instance.my_instance
terraform
taint
resource
terraform

Unmark Resource

Remove taint from a resource

terraform untaint aws_instance.my_instance
terraform
untaint
resource
terraform

Login to Terraform Cloud

Authenticate with Terraform Cloud

terraform login
terraform
login
cloud
terraform

Update Providers

Upgrade provider versions

terraform providers lock -platform=linux_amd64
terraform
providers
update

Missing a command?

Help us improve this collection by suggesting commands that should be added. Your contributions help the entire developer community!