Tea — a strongly typed scripting language
Tea
DocsPlaygroundExamplesReferenceCommunity
GitHub

Tea Language

A strongly typed scripting language for native tools.

© 2026 Tea Language.

Agent documentationContributingCommunityRepository

Get Started

InstallationGetting StartedCLI

Tutorial

Build a CLI with Tea1. Display your first task2. Display several tasks3. Track task status4. Accept commands5. Read saved tasks6. Add tasks7. Complete tasks8. Organize and test9. Build your executable

Language

SyntaxTypesFunctionsStructsGenericsPattern MatchingError HandlingModulesTesting

Project

Code StyleContributing

Read as Markdown

Get Started

Getting Started

Run a small Tea program, then build a standalone native binary with the same source file.

Start with one file and one visible result. Save this as hello.tea so you can run it directly and then compile the exact same source into a native binary.

const message = "Hello from Tea"

@println(message)

Once the file exists, run it in script mode first. That gives you the shortest feedback loop while you are still changing the source.

tea hello.tea

When the script behaves the way you want, build it. Tea uses the same entrypoint to produce a standalone executable under bin/.

tea build hello.tea
./bin/hello

What to notice

  • const creates an immutable binding.
  • @println(...) writes output directly from a Tea script.
  • Programs can be interpreted or compiled from the same entrypoint.

Next repo-backed examples

After this first run, move to the checked-in examples under examples/. They are the most reliable way to learn what the compiler and CLI support today.

Next steps

Continue to

Build a CLI with Tea

Grow a task-list tool from your first binding to a tested native executable.

Continue to

echo example

See a complete CLI in a small file.

Continue to

Syntax

Review the language surface in more detail.