github.com/hashicorp/packer@v1.14.3/website/content/partials/commands/only.mdx (about)

     1  - `-only=foo,bar,baz` - Only run the builds with the given comma-separated
     2    names. In legacy JSON templates, build names default to the
     3    types of their builders (e.g. `docker` or
     4    `amazon-ebs` or `virtualbox-iso`), unless a specific `name` attribute is
     5    specified within the configuration. In HCL2 templates, the "name" is the
     6    source block's "name" label, unless an in-build source definition adds the
     7    "name" configuration option.