1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/packer.md
Sharun 39c8cc5c0a
packer: add fmt example (#11047)
* add `packer fmt`

* Update pages/common/packer.md

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2023-10-20 07:46:26 +02:00

16 lines
312 B
Markdown

# packer
> Build automated machine images.
> More information: <https://www.packer.io/>.
- 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}}`