mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 21:22:09 +02:00
20 lines
558 B
Markdown
20 lines
558 B
Markdown
# terraform fmt
|
|
|
|
> Formatierung der Konfiguration gemäß den Konventionen der Terraform-Sprache.
|
|
> Weitere Informationen: <https://www.terraform.io/docs/commands/fmt.html>.
|
|
|
|
- Formatieren der Konfiguration im aktuellen Verzeichnis:
|
|
|
|
`terraform fmt`
|
|
|
|
- Formatieren der Konfiguration im aktuellen Verzeichnis und den Unterverzeichnissen:
|
|
|
|
`terraform fmt -recursive`
|
|
|
|
- Anzeige der Unterschiede bei Formatierungsänderungen:
|
|
|
|
`terraform fmt -diff`
|
|
|
|
- Die Dateien mit Formatierungsinkonsistenzen werden nicht auf stdout ausgegeben:
|
|
|
|
`terraform fmt -list=false`
|