Tea Documentation
A strongly typed scripting language with familiar syntax and native compilation. Install the CLI, run a real script locally, then use the playground, reference docs, and runnable examples when you need them.
use string = "std.string"
struct User {
name: String
age: Int
}
var user = User(name: "Ada", age: 37)
var total = 0
for value in [1, 2, 3, 4]
total = total + value
end
@println(string.to_upper(user.name))
@println(total)Quick install
The recommended path downloads a prebuilt Tea release for x86_64 Linux or Apple Silicon macOS with checksum verification and installs it to ~/.local/bin by default.
curl -fsSL https://tea-lang.dev/install | bashTea uses a local C toolchain to build executables: run xcode-select --install on Apple Silicon macOS, or install clang with your package manager on Linux. Intel Macs should build from source.
Install locally
Install Tea locally, verify the CLI, and follow the first-run path from script to binary.
APIs and built-ins
Look up built-ins and stdlib modules such as `std.fs`, `std.path`, `std.regex`, and `std.process`.
In-browser runner
Edit and run browser-safe Tea in a WASM-backed playground embedded in the docs site.
Runnable source
Study complete, runnable examples including `echo`, `grep`, `todo`, and `team_scoreboard`.
Start here
Installation
Install a prebuilt Tea release and verify the CLI.
Getting Started
Run your first script and compile a binary.
CLI
Run, build, format, and test Tea programs.
Built-ins
Tea exposes a small set of global `@` intrinsics for output, script control, introspection, and math.
std.fs
Filesystem operations for reading, writing, and managing files and directories.
echo
A small CLI that mirrors Unix `echo`.