Upgrade providers and modules to newest allowed versions during initialization.
Section: Getting Started
Init and upgrade providers/modules
bash
bash
terraform init -upgradeExplanation
Upgrade providers and modules to newest allowed versions during initialization.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Getting Started
Initialize working directory
Install required providers and modules and initialize backend configuration.
Init without backend
Initialize modules and providers without configuring remote/backend state.
Reconfigure backend
Reinitialize backend configuration without migrating existing state automatically.
Show Terraform version
Print the installed Terraform CLI version and provider versions in use.