Skip to content

Install and update

System Command
macOS and Linux curl -fsSL https://sort.do/install | bash
Windows (PowerShell) irm https://sort.do/install.ps1 | iex
Any system with Node.js 18 or later npm install -g sortdo
Homebrew brew install sortdo/tap/sortdo
winget winget install Sort.sortdo

sortdo runs on macOS, Linux and Windows, on x64 and arm64 processors. It is one program with no other requirements.

The install scripts:

  1. Download the release for your system from github.com/sortdo/cli/releases.
  2. Check its SHA-256 against the release’s checksums.txt. A file that does not match is not installed.
  3. Put sortdo in ~/.local/bin (Windows: %LOCALAPPDATA%\Programs\sortdo), so no administrator rights are needed.
  4. Add that folder to your PATH, and offer to teach your coding agents to use sortdo.

Read a script before you run it: install.sh, install.ps1. https://trysort.com/install gives the same script to curl and PowerShell; in a browser, it is the page with every way to get Sort’s apps.

Set these before the command, for example curl -fsSL https://sort.do/install | SORTDO_VERSION=0.2.0 bash.

Variable Effect
SORTDO_VERSION Install this version instead of the latest.
SORTDO_INSTALL_DIR Install into this folder.
SORTDO_NO_MODIFY_PATH=1 Do not change your shell profile.
SORTDO_INSTALL_SKILL=1 or 0 Install the agent skill without asking, or skip it.

sortdo tells you once a day, in a terminal, when a new version is out.

  • Installed with the script: sortdo update. It checks the download’s SHA-256 before it replaces the program.
  • npm: npm install -g sortdo@latest. Homebrew: brew upgrade sortdo. winget: winget upgrade Sort.sortdo. sortdo update prints the right command.

Each way to install puts sortdo in its own folder, so two ways give two copies. They share the sign-in and the settings, but only the first one on your PATH runs, and an update changes only one. sortdo status and sortdo update list the copies when there is more than one. Keep one, and remove the others with the tool that installed them.

Every release has a checksums.txt, its signature checksums.txt.minisig, and a build attestation from GitHub:

Terminal window
minisign -Vm checksums.txt -P RWQsuyzz4q/CJYGDrRz9vMHXgekMewZ+HVM3ux70Ft+oaNjrhxfCL+KL
sha256sum -c checksums.txt --ignore-missing
gh attestation verify sortdo_linux_amd64.tar.gz --repo sortdo/cli

sortdo update makes the same signature check before it installs a new version, and refuses a release that fails it.

On macOS, the program is also signed by Sort Works Ltd and notarized by Apple. codesign -dvv "$(command -v sortdo)" shows Authority=Developer ID Application: Sort Works Ltd (KDLWZ98LA3).

Terminal window
sortdo uninstall

It signs out, and removes the agent skill, the settings and the program. When npm, Homebrew or winget installed sortdo, it prints the command that removes the program: npm uninstall -g sortdo, brew uninstall sortdo or winget uninstall Sort.sortdo. A coding agent runs sortdo uninstall --yes.

The install script also added its folder to your PATH. That line stays; it does no harm.