Upgrading

Upgrading Haloy CLI

Shell Script

To upgrade the Haloy CLI from the previous version:

curl -fsSL https://sh.haloy.dev/install-haloy.sh | sh

The installation script will upgrade your existing installation to the latest version.

Homebrew

If you installed Haloy via Homebrew:

brew upgrade haloy

Javascript Package Managers

If you installed Haloy as a global package:

npm install -g haloy@latest
pnpm add -g haloy@latest
bun add -g haloy@latest

If you installed Haloy as a project dev dependency:

npm install --save-dev haloy@latest
pnpm add -D haloy@latest
bun add -D haloy@latest

Verify Upgrade

Check that the upgrade was successful:

haloy version

Upgrading Haloyd on the Server

SSH into your server and run the upgrade script:

curl -fsSL https://sh.haloy.dev/upgrade-server.sh | sh

Note: Do not re-run the original install-haloyd.sh script to upgrade. While it won’t overwrite your configuration or data, it will replace your systemd/OpenRC service file, discarding any manual customizations.

This script supports systemd, OpenRC, and SysVinit. It will:

  1. Download the latest haloyd binary
  2. Stop the service
  3. Replace the binary
  4. Restart the service

Verify Server Upgrade

Check the server version:

haloyd version