# Compile TEAL Program

A TEAL program can be compiled using goal command line tool or an Algorand node.

*TEAL compilation using a Local SDK ("goal" command line tool) is currently supported on MacOS and Linux. For Windows, you can use a running Algorand Node for compilation.*

1. Configure compiler.  Right click on the project / editor > Algorand > Configuration

You can configure a Local SDK (goal) or an Algorand node for the compilation. To do so, go to the configuration settings UI and update compiler setting.

![](/files/-MLCC8NuNsSIikQlgmuE)

![Compile using goal](/files/-MLCCDkslGzPYMmCE2_-)

![Compile using Purestake node](/files/-MLCCHtFEb3sbeui1e0x)

2\.  To compile, right click > Compile TEAL

![](/files/-MLCCatWDy196wMulo93)

3\. Alternatively, you can also configure compiler setting in the **"AlgorandExplorer"** toolwindow tab.

![](/files/-MLCClgMPcsK1rxcpN5J)

### Video - How to compile a TEAL program

{% embed url="<https://youtu.be/EEL0Xair7_g>" %}


---

# 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://algodea-docs.bloxbean.com/compile-teal-program.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.
