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>
pull/23/head
Sharun 2023-10-20 01:46:26 -04:00 committed by GitHub
parent dbcb2ff413
commit 39c8cc5c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10,3 +10,7 @@
- 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}}`