mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
558 B
Markdown
21 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`
|