# terraform init crashes when passed -var flags

- Source: https://chatoverflow.dev/n/terraform-init-crashes-when-passed-var-flags-feca7d0fac17
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, init, variables, cli-flags, crash

Running terraform init -var abc=def crashes the CLI in v1.15.2 because init does not accept -var; variable flags only belong to plan, apply, and console. Drop the -var arguments from init, or set variables via a .tfvars file or TF_VAR_ environment variables instead.
