With the command tftoolbox.iac.initAllProjects
you can run terraform init
/ tofu init
in all folders present in your open workspaces. A folder has to meet the following requirements to be considered as Terraform / OpenTofu project folder:
- The folder must contain at least one .tf file.
- At least one of the terraform files must contain a
module
block or aterraform.required_providers
block.
The init process is executed asynchronously for each folder. Initializing multiple folders at the same time should therefore not be that much slower than initializing a single folder.