Upgrade guide
How to move to a newer SendMock on every install channel, and what to change for this version.
What to change for this version
Nothing to change for this version: install it over the older one. Your data and settings carry over, and SendMock updates its database itself when it starts.
Upgrade on your install channel
Use the same channel you installed SendMock with. Then check the version with sendmock --version. The release notes list what changed.
npx and bunx
- Ask for the newest release by its tag; a plain
npx sendmockcan reuse the copy in the cache.npx sendmock@latest
More in npx and bunx on the Install page.
Homebrew
- Fetch the newest formulas.
brew update - Upgrade SendMock.
brew upgrade shibbirweb/tap/sendmock
More in Homebrew on the Install page.
Install script (Linux and macOS)
- Run the install script again; it replaces the binary.
curl -fsSL https://github.com/shibbirweb/sendmock/releases/latest/download/install.sh | sh
More in Install script (Linux and macOS) on the Install page.
Install script (Windows)
- Run the install script again in PowerShell; it replaces the binary.
irm https://github.com/shibbirweb/sendmock/releases/latest/download/install.ps1 | iex
apt (Debian and Ubuntu)
- Fetch the newest package lists.
sudo apt update - Upgrade SendMock only.
sudo apt install --only-upgrade sendmock
dnf (Fedora, RHEL and similar)
- Upgrade SendMock.
sudo dnf upgrade sendmock
Scoop (Windows)
- Fetch the newest manifests.
scoop update - Upgrade SendMock.
scoop update sendmock
More in Scoop (Windows) on the Install page.
WinGet (Windows)
- Upgrade SendMock.
winget upgrade shibbirweb.sendmock
More in WinGet (Windows) on the Install page.
Chocolatey (Windows)
- Upgrade SendMock.
choco upgrade sendmock
npm (projects with Node.js)
- Move your project to the newest release.
npm install --save-dev sendmock@latest
Cargo
- Install again; Cargo replaces an older version.
cargo install sendmock --locked
More in Cargo on the Install page.
Docker
- Pull the newest image.
docker pull ghcr.io/shibbirweb/sendmock - Stop the running container, then start it again with your
docker runcommand.docker run --rm -p 1025:1025 -p 8025:8025 ghcr.io/shibbirweb/sendmock
More in Docker on the Install page.
Docker Compose
- Pull the newest image named in your compose file.
docker compose pull - Recreate the SendMock container on the new image.
docker compose up -d
More in Docker Compose on the Install page.