terraform init

Prepare your working directory for other commands

Options

NameDescription
-upgradeOpt to upgrade modules and plugins as part of their respective installation steps
-lock <true or false>Lock the state file when locking is supported. Defaults to true
-force <true or false>Delete the workspace even if its state is not empty. Defaults to false
-lock-timeout <seconds>Duration to retry a state lock. Default 0s
-input <true or false>Ask for input for variables if not directly set
-no-colorDisables output with coloring
-helpShow this help output, or the help for a specified subcommand
-chdir <arg>Switch to a different working directory before executing the given subcommand
-versionShow the current Terraform version