Install tsz

Pre-release software. tsz is under active development and is not yet a drop-in replacement for tsc. Diagnostics, inference, and emit may differ from TypeScript today. Try it for experimentation; do not rely on it for production type-checking. Bug reports welcome at github.com/mohsen1/tsz/issues.

macOS & Linux

curl -fsSL https://tsz.dev/install | sh

Windows (PowerShell)

irm https://tsz.dev/install.ps1 | iex

From Cargo

cargo install --git https://github.com/mohsen1/tsz tsz-cli
Verify your install: tsz --version

Options

The installer accepts flags passed after --:

curl -fsSL https://tsz.dev/install | sh -s -- --version v0.1.9 --dir ~/bin
  • --version <tag> — install a specific release (default: latest)
  • --dir <path> — override install directory (default: ~/.local/bin, falling back to ~/bin or /usr/local/bin)

Supported targets

  • x86_64-unknown-linux-gnu
  • aarch64-unknown-linux-gnu
  • x86_64-unknown-linux-musl
  • aarch64-unknown-linux-musl
  • x86_64-apple-darwin
  • aarch64-apple-darwin
  • x86_64-pc-windows-msvc
What does the installer do?

The script detects your OS & architecture, fetches the matching release asset from GitHub Releases, verifies the tarball, and drops tsz (and tsz-lsp) into a directory on your $PATH. It does not touch system files or require sudo unless you point --dir at a privileged location.

If you'd rather audit it first:

curl -fsSL https://tsz.dev/install -o install.sh
less install.sh
sh install.sh