github.com/hashicorp/packer@v1.14.3/website/content/partials/from-1.5/variables/assignment.mdx (about) 1 ## Assigning Values to input Variables 2 3 Once a variable is declared in your configuration, you can set it: 4 5 - Individually, with the `-var foo=bar` command line option. 6 - In variable definitions files, either specified on the command line with the `-var-files values.pkrvars.hcl` or automatically loaded (`*.auto.pkrvars.hcl`). 7 - As environment variables, for example: `PKR_VAR_foo=bar`