Skip to content

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.

Terminal window
curl -fsSL https://tui-test.dev/install.sh | sh

On macOS and Linux, you can also install with Homebrew:

Terminal window
brew tap microsoft/tui-test https://github.com/microsoft/tui-test
brew install tui-test

Prebuilt archives for each supported platform are available on GitHub Releases.

Terminal window
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.

Install the tui-test skill for coding agents using Vercel’s skills CLI:

Terminal window
npx skills add microsoft/tui-test --skill tui-test

Or install the embedded skill interactively from the tui-test CLI:

Terminal window
tui-test skill --add

See AI agents for agent workflows, prompt options, and JSON schema commands.

Each library runs the terminal engine in-process.

Requires Node.js 20 or newer. Keep optional dependencies enabled during installation.

Terminal window
npm install @microsoft/tui-test

The 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.

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.

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.