How about using something like: https://github.com/juampi92/auto-updater to update the application to a new version?
Although I don't like auto-updating, I like the new version/easier updating process this library could introduce.
The update process in the wiki works well but I think this could easily added to a script to automate the update to some extend.
In the future I think there could be a flag to allow automatic updates of non breaking Version changes?
Yes, but still bugs could be introduced in newer version
After the latest version increases in just a few days I think a simple update process would be in order. We can postpone the auto update functionality but a script that stops the service, updates it and restarts the service would be very nice.
How about adding the following script to the project?
update.sh
#!/bin/bash
# Source: https://github.com/Koenkk/zigbee2mqtt/wiki/Running-the-bridge#6-for-later-update-zigbee2mqtt-to-the-latest-version
# Stop zigbee2mqtt and go to directory
sudo systemctl stop zigbee2mqtt
cd /opt/zigbee2mqtt
# Backup configuration
cp -R data data-backup
# Update
git checkout HEAD -- npm-shrinkwrap.json
git pull
rm -rf node_modules
npm install
# Restore configuration
cp -R data-backup/* data
rm -rf data-backup
# Start zigbee2mqtt
sudo systemctl start zigbee2mqtt
Good idea! can you make a PR?