mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
435 B
Plaintext
22 lines
435 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# packer
|
|
|
|
> Build automated machine images.
|
|
> More information: <https://developer.hashicorp.com/packer/docs/commands>.
|
|
|
|
- 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}}`
|