Terraform CLI Cheat Sheet/Reconfigure backend

Reinitialize backend configuration without migrating existing state automatically.

Section: Getting Started

Reconfigure backend

bash
bash
terraform init -reconfigure
Explanation

Reinitialize backend configuration without migrating existing state automatically.

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
Init without backend
Initialize modules and providers without configuring remote/backend state.
OpenIn sheetbashsame section
Initialize working directory
Install required providers and modules and initialize backend configuration.
OpenIn sheetbashsame section
Init and upgrade providers/modules
Upgrade providers and modules to newest allowed versions during initialization.
OpenIn sheetbashsame section
Show Terraform version
Print the installed Terraform CLI version and provider versions in use.
OpenIn sheetbashsame section
Show Terraform help
List Terraform subcommands and global options.
OpenIn sheetbashsame section
Format current directory
Rewrite Terraform files to canonical style.
OpenIn sheetbash1 tag match