On this page

Install Tenon on macOS and Linux

Tenon ships as a single self-contained tenon executable with the C runtime headers and edition 2026 bundled plugins embedded inside. You can install it from a prebuilt release bundle, a Debian/Ubuntu .deb package, or from a local source checkout.

Requirements

Purpose Requirements
Install & build native Tenon programs via install.sh Bash and curl only — no Rust, Cargo, Python, Xcode CLT, or build-essential required (if no host C compiler is found, install.sh automatically provisions a self-contained Zig 0.17.1 C11 toolchain under <prefix>/share/tenon/toolchain/zig)
Run tenon interp, check, fmt, prime, doc tenon only
Compile or run native Tenon programs (tenon build, tenon run, tenon install) tenon plus either Tenon's auto-provisioned Zig 0.17.1 C11 toolchain or a host C compiler (clang, gcc, or tcc)
Use external native FFI plugins The plugin's system libraries, headers and, when requested, pkg-config; see FFI
Build Tenon itself from source Git, Rust 1.92.0 through rustup, a C compiler, Make, pkg-config, SQLite/zlib headers, and pandoc for docs site tests (no Python required for building or running make check; Python 3.10+ is optional for bench/ baselines and tools/maya/ ML training only); see contributor setup

macOS (optional host toolchain)

install.sh automatically provisions a self-contained Zig 0.17.1 C11 toolchain when no host C compiler is present, so Apple's Command Line Tools are not required to install or compile Tenon programs. Install Command Line Tools only if you prefer Apple Clang, use external FFI against macOS SDK frameworks, or plan to build Tenon itself from source:

xcode-select --install

This supplies Clang, Git, and the macOS SDK on both Apple Silicon (arm64) and Intel (x86_64).

Linux (optional host toolchains & packages)

install.sh automatically provisions a self-contained Zig 0.17.1 C11 toolchain when no host C compiler is present, so build-essential is not required. Install optional host packages if you use the .deb package without install.sh, want fast tcc development compiles or bubblewrap process sandboxing, or need external FFI/static musl dependencies:

# Debian / Ubuntu (optional: host C compiler, fast dev compiler, process sandbox, FFI/static deps)
sudo apt update
sudo apt install -y build-essential tcc bubblewrap zlib1g-dev musl-tools

# Fedora
sudo dnf install git curl gcc glibc-devel

# Arch Linux
sudo pacman -S --needed git curl base-devel

build-essential provides GCC and libc headers; tcc enables fast development compiles; bubblewrap enables Linux process sandboxing; zlib1g-dev and musl-tools support zlib FFI and static musl builds.

Install

curl -fsSL https://tenon-lang.org/install.sh | bash

(https://tenon-lang.com/install.sh redirects here. The GitHub Releases direct URL https://github.com/tenon-lang/tenon/releases/latest/download/install.sh is also available as a secondary fallback.)

By default, install.sh installs tenon into ~/.local/bin/tenon, updates your shell PATH, runs tenon setup --skills to configure AI coding agents, and automatically provisions Tenon's managed Zig 0.17.1 C11 toolchain if no working host C compiler is present.

Or install offline from a local release bundle:

bash scripts/install-latest.sh --from dist/latest

Useful options for install-latest.sh:

# Check platform and available release without modifying disk
bash scripts/install-latest.sh --check

# Install into a custom prefix (/absolute/path/bin/tenon)
bash scripts/install-latest.sh --prefix /absolute/path

# Always install the self-contained managed Zig C11 toolchain (even if host cc exists)
bash scripts/install-latest.sh --with-toolchain

# CI / minimal install without touching shell profiles, agent skills, or toolchain
bash scripts/install-latest.sh --no-modify-path --no-skills --no-toolchain

# Emit machine-readable JSON summary
bash scripts/install-latest.sh --from dist/latest --json

Debian / Ubuntu (.deb)

sudo apt update
sudo apt install -y ./tenon_<version>_amd64.deb build-essential tcc bubblewrap
tenon doctor

Local release bundle (make ship-local)

From a source checkout, build the host release bundle (dist/latest/) and install it into ~/.local/bin/tenon:

make ship-local
# Or build the bundle directly:
bash scripts/dist/build-installer.sh --targets host

Source-build fallback

If no prebuilt binary is available for your platform, install Rust 1.92.0 via rustup and run the source installer:

git clone https://github.com/tenon-lang/tenon.git
cd tenon
rustup toolchain install 1.92.0 --profile minimal
bash scripts/install.sh

The source installer runs a locked release build, smoke-tests both the interpreter and C backend outside the checkout, and replaces $HOME/.local/bin/tenon only on success. Use bash scripts/install.sh --check or make install-check to check prerequisites, and --prefix /absolute/path (or make install PREFIX=/absolute/path) for a custom destination.

Put Tenon on PATH and try it

install.sh (scripts/install-latest.sh) idempotently adds $HOME/.local/bin to ~/.zshrc, ~/.bashrc, or ~/.profile by default (pass --no-modify-path to skip profile edits). Open a new shell, source your profile, or configure PATH manually in Bash or Zsh:

export PATH="$HOME/.local/bin:$PATH"
tenon --version

Verify your host toolchain and environment:

tenon doctor
tenon doctor --json

Scaffold and run your first project:

tenon new cli hello
cd hello
tenon run -- --help

Continue with the 60-second quickstart or the AI agent quickstart.

Update or remove

Upgrade a prebuilt user installation in place:

tenon upgrade
# Check without modifying disk:
tenon upgrade --check

For .deb installations, upgrade through apt install ./tenon_<new-version>_amd64.deb. For source installations, pull the desired revision and re-run bash scripts/install.sh.

To remove a user installation, delete the executable (and optionally the managed Zig toolchain directory if provisioned):

rm "$HOME/.local/bin/tenon"
rm -rf "$HOME/.local/share/tenon/toolchain"

For a custom prefix, remove <prefix>/bin/tenon (and <prefix>/share/tenon/toolchain). For a .deb installation, run sudo apt remove tenon.

Distribution status

Public prebuilt releases (tenon-lang/tenon GitHub Releases and https://tenon-lang.org/install.sh via .github/workflows/release.yml and .github/workflows/pages.yml), prebuilt bundles (scripts/dist/build-installer.sh), the standalone downloader (scripts/install-latest.sh), .deb packaging (scripts/dist/build-deb.tn), and the clean-room qualification harness (bench/onboarding-smoke/qualify.sh) are live for macOS (arm64, x86_64) and Linux (x86_64, aarch64 static musl and .deb). macOS notarization and native Windows support remain tracked separately in PLAN.md.