Four install channels. All of them ship the same native binary (~7-10 MB, zero runtime deps, ~4 ms startup). Pick whichever fits your existing toolchain.
| Channel | One-liner |
|---|---|
| curl / sh | curl -fsSL https://usetrs.dev/install.sh \| sh |
| PowerShell | irm https://usetrs.dev/install.ps1 \| iex |
| npm | npm install -g @dpeluche/trs |
| Prebuilt binary | GitHub Releases |
The curl|sh and irm|iex scripts are the recommended default: they
detect arch, download the right prebuilt binary, place it in
~/.local/bin/ (or $USERPROFILE\.local\bin\ on Windows), and add
that dir to PATH automatically if it isn’t already.
| OS | Arch | How it’s shipped |
|---|---|---|
| macOS | arm64 (Apple Silicon) | prebuilt binary + npm |
| macOS | x64 (Intel) | prebuilt binary + npm |
| Linux | x64 | prebuilt binary + npm |
| Linux | arm64 | prebuilt binary + npm |
| Windows | x64 | prebuilt binary + npm |
If you prefer to pick the file yourself:
trs-darwin-arm64,
trs-darwin-x64, trs-linux-arm64, trs-linux-x64, or
trs-windows-x64.exe.chmod +x trs-* on Unix) and place it
somewhere in your PATH. ~/.local/bin is the convention.Verify the install with:
trs --version
trs doctor # full health check
Set TRS_VERSION before running the installer to pin rather than
taking the latest release:
TRS_VERSION=v0.10.6 curl -fsSL https://usetrs.dev/install.sh | sh
For Windows:
$env:TRS_VERSION = 'v0.10.6'
irm https://usetrs.dev/install.ps1 | iex
For npm, use the standard tag syntax:
npm install -g @dpeluche/trs@0.10.6
The curl|sh script picks ~/.local/bin by default (XDG convention,
already in PATH on most modern shells). Override with
TRS_INSTALL_DIR:
TRS_INSTALL_DIR=/opt/trs curl -fsSL https://usetrs.dev/install.sh | sh
On Windows:
$env:TRS_INSTALL_DIR = 'C:\tools\trs'
irm https://usetrs.dev/install.ps1 | iex
If the install dir isn’t already in PATH, the installer adds it
automatically. Set TRS_NO_MODIFY_PATH=1 to skip the PATH edit (you
take responsibility for adding it manually).
trs upgrade --check # show what would run (detects install channel)
trs upgrade # perform the upgrade
trs upgrade --binary-only # skip the hooks / output-saver refresh
trs upgrade auto-detects which channel installed the running binary
(via current_exe() path matching) and re-runs the matching install
command. See docs/features/upgrade.md for
the detection table, pre-refresh guards, and caveats for
source builds and Homebrew installs (not auto-upgradable).
If you install through two channels (npm and curl for example), the
one that appears first in PATH wins silently. trs doctor flags
duplicates explicitly:
WARN PATH multiple trs binaries found
active: /Users/you/.local/bin/trs
shadowed: /Users/you/.nvm/.../node_modules/.bin/trs
2 trs binaries in PATH, the first one wins
Fix by uninstalling the duplicate (npm uninstall -g @dpeluche/trs
or similar) or reordering PATH.
| Channel | Command |
|---|---|
| curl / sh | rm ~/.local/bin/trs (or whichever TRS_INSTALL_DIR you used) |
| PowerShell | Remove-Item $env:USERPROFILE\.local\bin\trs.exe |
| npm | npm uninstall -g @dpeluche/trs |
| built from source | cargo uninstall trs-cli |
Remove hook integrations before (or after) uninstalling the binary:
trs init --remove --all # before: cleans hooks using the current binary
trs output-saver --remove # removes the rules block from agent configs
These can also be done manually: the integration files live under
~/.claude/, ~/.gemini/, ~/.cursor/, etc. Grep for trs in
settings.json / hooks.json to find any leftovers.
trs: command not found after install: re-source your shell
profile (source ~/.zshrc / source ~/.bashrc) or open a new
terminal. The installer adds the install dir to the profile but
the current shell doesn’t pick it up until it restarts.~/.local/bin: the dir doesn’t
exist or isn’t writable. mkdir -p ~/.local/bin and retry.Get-Command trs and confirm
the install dir appears in $env:Path. The installer uses
SetEnvironmentVariable('Path', …, 'User') which persists for new
shells but leaves the current process’s env untouched.trs debug-info -o /tmp/trs.txt and paste the
file contents into a GitHub issue, the report bundles version,
platform, doctor checks, and recent logs.