CmdID

CmdID / Commands

terraform-init

Initialize a new or existing Terraform working directory. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Initialize the current working directory

terraform initIdentify

Initialize and upgrade modules and providers to the latest allowed versions

terraform init -upgradeIdentify

Initialize and reconfigure the backend, ignoring any saved configuration

terraform init -reconfigureIdentify

Initialize and reconfigure the backend, attempting to migrate any existing state

terraform init -migrate-stateIdentify

Initialize with additional backend configuration

terraform init -backend-config 'key=value'Identify

Initialize without backend or HCP Terraform initialization

terraform init -backend=falseIdentify

Initialize without interactive prompts (useful for automation)

terraform init -input=falseIdentify

Initialize with the dependency lockfile mode set to readonly

terraform init -lockfile readonlyIdentify