Each generator that you define in your BAML project will tell baml-cli generate to generate code for a specific target language. You can define multiple generator clauses in your BAML project, and baml-cli generate will generate code for each of them.

If you created your project using baml-cli init, then one has already been generated for you!
1generator target {
2 // Valid values: "python/pydantic", "typescript", "ruby/sorbet"
3 output_type "python/pydantic"
4
5 // Where the generated code will be saved (relative to baml_src/)
6 output_dir "../"
7
8 // What interface you prefer to use for the generated code (sync/async)
9 // Both are generated regardless of the choice, just modifies what is exported
10 // at the top level
11 default_client_mode "sync"
12
13 // Version of runtime to generate code for (should match installed baml-py version)
14 version "0.63.0"
15}