mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-24 01:22:10 +02:00
20 lines
571 B
Markdown
20 lines
571 B
Markdown
# terraform fmt
|
|
|
|
> Formatierung der Konfiguration gemäß den Konventionen der Terraform-Sprache.
|
|
> Weitere Informationen: <https://developer.hashicorp.com/terraform/cli/commands/fmt>.
|
|
|
|
- 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`
|