Skip to content
Unofficial community docs. Content pulled on 2026-10-24 from Trail-Code@d205ac3. For the latest, see the official repo.

Upgrade and uninstall

Terminal window
trail upgrade

Runs npm install -g for the latest published version. A new version is announced automatically (checked once a day). After upgrading, the next session refreshes this repo’s wiring itself.

trail uninstall removes every file and config entry it wrote here: the inverse of init. Without -y it prints what it would remove and exits:

Terminal window
trail uninstall

To actually remove:

Terminal window
trail uninstall -y

Options:

Flag Effect
--keep-cache Wiring only; leave graft/ and the .gitignore entry
--no-global Leave out-of-repo files alone (~/.claude, ~/.claude.json, ~/.codex, ~/.gemini)