On this page

60-Second Quickstart

Build and run a native CLI tool, a live terminal UI, an MCP tool server, and a plugin-backed app with tenon. Every command below works completely offline once tenon is installed (see the installation guide).

1. CLI application

Scaffold a typed CLI tool, run it, and install the compiled binary into ~/.local/bin:

tenon new cli my-tool
cd my-tool
tenon check
tenon test
tenon run -- --help
tenon install

tenon install builds a release binary and places my-tool in $HOME/.local/bin/my-tool (use --prefix <abs-path> for a custom location).

2. Live TUI application

Scaffold a pure, deterministic terminal UI app, run its headless tests, and launch it:

tenon new tui counter
cd counter
tenon check
tenon test
tenon run

3. MCP tool server

Scaffold a Model Context Protocol (MCP) tool server and verify it with its built-in tests:

tenon new mcp my-mcp
cd my-mcp
tenon check
tenon test
tenon build

You can also scaffold agent (tenon new agent <name>) and web (tenon new web <name>) projects, or initialize an existing directory with tenon init --template cli.

4. Add bundled edition 2026 plugins

Tenon embeds its edition 2026 plugin catalog directly in the binary. Browse by category, add a plugin to your project manifest, and inspect its compact API card:

tenon plugins index --category web
tenon add http
tenon doc --card http

List all bundled plugins with tenon plugins index --all.

Which command?

Goal Command Notes
Fast edit-check loop tenon check (or tenon check --fix) Validates syntax, types, and capabilities without compiling C; tenon holes lists typed todo() holes.
Run during development tenon run [-- args...] Compiles via the dev C backend (using a host C compiler or Tenon's auto-provisioned Zig C11 toolchain) and runs; use tenon interp to run directly without compiling C.
Run tests on both backends tenon test [--filter SUB] Runs unit test blocks and application goldens on both C and the reference interpreter.
Measure performance & allocations tenon profile [--json] [-- args...] Built-in runtime timing, arena stats, hotspots, and copy/check report (distinct from tenon build --profile DWARF builds).
Ship a native binary tenon build --release / tenon install Produces an optimized native executable (--static for a single static binary); install puts it in ~/.local/bin.

Next steps