Tea
DocsPlaygroundExamplesReferenceCommunity
GitHub

Tea Language

A strongly typed scripting language for native tools.

© 2026 Tea Language.

ContributingCommunityRepository

Get Started

InstallationGetting StartedCLI

Language

SyntaxTypesFunctionsStructsGenericsPattern MatchingError HandlingModulesTesting

Project

Code StyleContributing

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

echo example

See a complete CLI in a small file.

Continue to

Syntax

Review the language surface in more detail.