Installation & CLI
Everything you need to install Tezz and manage your projects from the terminal.
Installation
Tezz is distributed via the npm registry. Install it globally on your machine using npm:
npm install -g tezz-lang
Verify the installation by checking the version:
tezz --version
CLI Commands
The tezz CLI is your all-in-one tool for development and production.
| Command | Description |
|---|---|
tezz init |
Scaffolds a new app.tezz file with a starter template. |
tezz dev <file> |
Starts the development server with hot-reloading enabled. Saving your file instantly restarts the server. |
tezz run <file> |
Compiles and runs a Tezz file directly in Node.js. |
tezz build <file> |
Compiles your Tezz code into raw JavaScript. Use --target worker to compile for Cloudflare Workers. |
tezz repl |
Starts an interactive Read-Eval-Print Loop for testing snippets on the fly. |
Hot-Reloading in Action
When running tezz dev app.tezz, the CLI watches your file for changes. When a change is detected, it intercepts the signal, kills the current server, recompiles the AST, and spawns a new server instance—all in less than 300ms.