1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 20:44:10 +02:00
tldr/pages/common/packer.md

17 lines
342 B
Markdown
Raw Normal View History

2020-03-05 23:46:18 -06:00
# packer
> Build automated machine images.
> More information: <https://developer.hashicorp.com/packer/docs/commands>.
2020-03-05 23:46:18 -06:00
- Build an image:
`packer build {{path/to/config.json}}`
- Check the syntax of a Packer image config:
`packer validate {{path/to/config.json}}`
- Format a Packer image config:
`packer fmt {{path/to/config.pkr.hcl}}`