# Code generation

<figure><img src="https://res.cloudinary.com/dhcihuzk8/image/upload/v1735827790/telosys-code-generation-001.png" alt="" width="563"><figcaption></figcaption></figure>

To generate your code you can use the following commands:

* **`gen`** to generate code with the current model and the current bundle\
  see  [gen command syntax](/code-generation/gen-command.md)&#x20;
* **`genb`** to generate code in "batch mode" (since ver 4.1.0) with multiple models and/or bundles\
  see  [genb command syntax](/code-generation/genb-command.md)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.telosys.org/code-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
