Install tui-test
tui-test runs real terminal sessions on Windows, Linux, and macOS. Install the CLI and agent skill for shell scripts, interactive debugging, and AI agent workflows, or install a language library to run the terminal engine directly inside your test suite.
The install script downloads the latest stable release for your platform. Releases target x86_64 and aarch64 on macOS, Linux, and Windows. Windows ARM64 requires a release newer than 0.1.1.
curl -fsSL https://tui-test.dev/install.sh | shirm https://tui-test.dev/install.ps1 | iexOn macOS and Linux, you can also install with Homebrew:
brew tap microsoft/tui-test https://github.com/microsoft/tui-testbrew install tui-testPrebuilt archives for each supported platform are available on GitHub Releases.
Check the installation
Section titled “Check the installation”tui-test --version--version (or -V) prints the tui-test version along with the bundled terminal emulator and PTY dependency versions, including the bundled Microsoft ConPTY version on Windows. Add --json for machine-readable output. If your shell cannot find tui-test, open a new terminal or verify that the install directory is on PATH.
Agent skill
Section titled “Agent skill”Install the tui-test skill for coding agents using Vercel’s skills CLI:
npx skills add microsoft/tui-test --skill tui-testOr install the embedded skill interactively from the tui-test CLI:
tui-test skill --addSee AI agents for agent workflows, prompt options, and JSON schema commands.
Libraries
Section titled “Libraries”Each library runs the terminal engine in-process.
Requires Node.js 20 or newer. Keep optional dependencies enabled during installation.
npm install @microsoft/tui-testThe package is ESM only. Bun and Deno work on a best-effort basis; Deno 2 requires a local node_modules directory and --allow-ffi. See the JavaScript and TypeScript API.
Requires Rust 1.90 or newer. The Cargo package is tui-test-rs and exports the tui_test crate.
cargo add tui-test-rs@0.1.1Alacritty is enabled by default. Enable ghostty, rio, or xtermjs for additional terminal backends, and recording-raster (or recording-font-jetbrains-mono* for bundled fonts) for APNG, GIF, and MP4 output. See the Rust API and docs.rs.
Requires Go 1.26 or newer.
go get github.com/microsoft/tui-test/bindings/go@v0.1.1See the Go API.
Custom native library path
Section titled “Custom native library path”When running against a local source checkout, testing a custom engine binary, or running Go where the user cache directory (os.UserCacheDir()) cannot be written, set TUI_TEST_NATIVE_LIBRARY to the absolute path of libtui_test_ffi.so, libtui_test_ffi.dylib, or tui_test_ffi.dll. The shared library must match your language package’s release version and target platform. See crates/tui-test-ffi/README.md for local source builds.
Requirements
Section titled “Requirements”Prebuilt libraries for JavaScript, Python, and Go support x86_64 and arm64 on macOS, Linux, and Windows. For Windows ARM64, use a package newer than 0.1.1. On Linux, prebuilt packages require glibc 2.28+ or musl 1.2+. tui-test-rs compiles from source with Cargo against your target’s standard library.