Installation
Install Repterm and its system dependencies for recording and PTY testing.
Install Repterm
Add Repterm as a dev dependency using your preferred package manager:
# Bun (recommended)
bun add -d repterm
# npm
npm install --save-dev repterm
# pnpm
pnpm add -D reptermSystem Dependencies
Repterm's recording mode captures terminal sessions using asciinema and tmux. These are only required if you plan to use --record mode.
macOS
brew install asciinema tmuxUbuntu / Debian
sudo apt-get install asciinema tmuxOther Linux
Use your distribution's package manager to install asciinema and tmux. Both are widely available in standard repositories.
Binary Install (Standalone CLI)
If you prefer a standalone binary without adding Repterm to your project dependencies:
curl -fsSL https://cdn.tensor-fusion.ai/archive/repterm/install.sh | bashYou can customize the install location and version:
REPTERM_VERSION=0.1.1 REPTERM_INSTALL_DIR=~/.local/bin \
curl -fsSL https://cdn.tensor-fusion.ai/archive/repterm/install.sh | bashThis installs the repterm CLI globally and is useful for CI environments or quick evaluation.
System Requirements
| Requirement | Minimum Version |
|---|---|
| Bun runtime | Latest stable |
| Node.js | 18+ |
| asciinema | Latest (recording only) |
| tmux | Latest (recording only) |
Verify Installation
After installing, confirm everything is working:
# Check that Repterm is available
bunx repterm --help
# Check recording dependencies (optional)
asciinema --version
tmux -VNext Steps
Once installed, head to Getting Started to write your first test.