cd into the installation directory
cd /opt/uptime-kuma
Update from git
git fetch --all
git checkout 1.11.2 --force
Install dependencies
npm install --omit=dev
npm run download-dist
Restart
pm2 restart uptime-kuma
Stop Uptime Kuma
pm2 stop uptime-kuma
Backup the data directory!
cp /opt/uptime-kuma/data ~/<or-whatever-path>
Ensure the Node.js version is >= 20.4
node --version
Move into the Uptime Kuma installation d
cd <uptime-kuma-directory>
Update from git and checkout desired version (I jumped from v1.23.16 to v2.2.1 successfully)
git fetch --all --tags
git checkout 2.2.1 --force
Install dependencies and prebuilt
npm install --omit dev --no-audit
npm run download-dist
Restart Uptime Kuma
pm2 restart uptime-kuma