SendMock

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

  1. Ask for the newest release by its tag; a plain npx sendmock can reuse the copy in the cache.
    npx sendmock@latest

More in npx and bunx on the Install page.

Homebrew

  1. Fetch the newest formulas.
    brew update
  2. Upgrade SendMock.
    brew upgrade shibbirweb/tap/sendmock

More in Homebrew on the Install page.

Install script (Linux and macOS)

  1. 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)

  1. Run the install script again in PowerShell; it replaces the binary.
    irm https://github.com/shibbirweb/sendmock/releases/latest/download/install.ps1 | iex

More in Install script (Windows) on the Install page.

apt (Debian and Ubuntu)

  1. Fetch the newest package lists.
    sudo apt update
  2. Upgrade SendMock only.
    sudo apt install --only-upgrade sendmock

More in apt (Debian and Ubuntu) on the Install page.

dnf (Fedora, RHEL and similar)

  1. Upgrade SendMock.
    sudo dnf upgrade sendmock

More in dnf (Fedora, RHEL and similar) on the Install page.

Scoop (Windows)

  1. Fetch the newest manifests.
    scoop update
  2. Upgrade SendMock.
    scoop update sendmock

More in Scoop (Windows) on the Install page.

WinGet (Windows)

  1. Upgrade SendMock.
    winget upgrade shibbirweb.sendmock

More in WinGet (Windows) on the Install page.

Chocolatey (Windows)

  1. Upgrade SendMock.
    choco upgrade sendmock

More in Chocolatey (Windows) on the Install page.

npm (projects with Node.js)

  1. Move your project to the newest release.
    npm install --save-dev sendmock@latest

More in npm (projects with Node.js) on the Install page.

Cargo

  1. Install again; Cargo replaces an older version.
    cargo install sendmock --locked

More in Cargo on the Install page.

Docker

  1. Pull the newest image.
    docker pull ghcr.io/shibbirweb/sendmock
  2. Stop the running container, then start it again with your docker run command.
    docker run --rm -p 1025:1025 -p 8025:8025 ghcr.io/shibbirweb/sendmock

More in Docker on the Install page.

Docker Compose

  1. Pull the newest image named in your compose file.
    docker compose pull
  2. Recreate the SendMock container on the new image.
    docker compose up -d

More in Docker Compose on the Install page.