Skip to content
masterclass Buddy

DevOps · Command

terraform init

terraform init prepares a Terraform working directory for use. It initializes the backend, downloads modules, and installs provider plugins.

Last updated

Syntax

terraform init [options]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • terraform plan
  • terraform apply
  • -backend-config
  • -backend=false
  • -force-copy
  • -get=false
  • -lock-timeout
  • -migrate-state

Source: terraform init command reference | Terraform | HashiCorp Developer. Checked 2026-11-03.