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.
We publish a daily latest PGO-optimized build, and the default installer tries that first when one is available for your target.
Try it for experimentation; do not rely on it for production type-checking.
Feedback and bug reports are welcome in GitHub Discussions at
github.com/tsz-org/tsz/discussions.
Try it on your project
If your project uses TypeScript, you can quickly test if tsz can work in your project by running:
npx try-tsz
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/tsz-org/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~/binor/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 when included in the selected asset) 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