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
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
brew upgrade haloy
Javascript Package Managers
If you installed Haloy as a global package:
npm install -g haloy@latest
npm install -g haloy@latest
pnpm add -g haloy@latest
pnpm add -g haloy@latest
bun add -g haloy@latest
bun add -g haloy@latest
If you installed Haloy as a project dev dependency:
npm install --save-dev haloy@latest
npm install --save-dev haloy@latest
pnpm add -D haloy@latest
pnpm add -D haloy@latest
bun add -D haloy@latest
bun add -D haloy@latest
Verify Upgrade
Check that the upgrade was successful:
haloy version
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
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:
- Download the latest
haloydbinary - Stop the service
- Replace the binary
- Restart the service
Verify Server Upgrade
Check the server version:
haloyd version
haloyd version