Back to Baml

Fmt

fern/03-reference/baml-cli/fmt.mdx

0.222.0433 B
Original Source

The fmt command will format your BAML files.

<Warning> **Warning: Beta Feature**

This feature is still in-progress, and does not yet support all BAML syntax. </Warning>

Usage

baml-cli fmt [OPTIONS] [file.baml] [file2.baml] [file3.baml] ...

Details

To disable the formatter in a file, you can add

baml
// baml-format: ignore

anywhere in the file.

Formatting is done in-place and non-configurable.