Package tomll is a linter program for TOML.
Reading from stdin, writing to stdout:
cat file.toml | tomll
Reading and updating a list of files in place:
tomll a.toml b.toml c.toml
Using Go:
go install github.com/pelletier/go-toml/v2/cmd/tomll@latest