Compare commits

...

2 Commits

Author SHA1 Message Date
0d20dce520 v5.3.1
Some checks failed
CI / Type Check & Lint (push) Successful in 16s
CI / Build Test (Current Platform) (push) Successful in 15s
Publish to npm / npm-publish (push) Failing after 26s
CI / Build All Platforms (push) Successful in 1m8s
Release / build-and-release (push) Successful in 1m11s
2026-03-15 12:04:06 +00:00
1c50509497 fix(cli): rename the update command references to upgrade across the CLI and documentation 2026-03-15 12:04:05 +00:00
11 changed files with 20 additions and 13 deletions

View File

@@ -1,5 +1,12 @@
# Changelog # Changelog
## 2026-03-15 - 5.3.1 - fix(cli)
rename the update command references to upgrade across the CLI and documentation
- Updates command parsing and help output to use `upgrade` instead of `update`.
- Revises user-facing upgrade prompts in daemon, systemd, and runtime status messages.
- Aligns README and command migration documentation with the renamed command.
## 2026-02-20 - 5.3.0 - feat(daemon) ## 2026-02-20 - 5.3.0 - feat(daemon)
Add UPSD (NUT) protocol support, Proxmox VM shutdown action, pause/resume monitoring, and network-loss/unreachable handling; bump config version to 4.2 Add UPSD (NUT) protocol support, Proxmox VM shutdown action, pause/resume monitoring, and network-loss/unreachable handling; bump config version to 4.2

View File

@@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/nupst", "name": "@serve.zone/nupst",
"version": "5.3.0", "version": "5.3.1",
"exports": "./mod.ts", "exports": "./mod.ts",
"nodeModulesDir": "auto", "nodeModulesDir": "auto",
"tasks": { "tasks": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/nupst", "name": "@serve.zone/nupst",
"version": "5.3.0", "version": "5.3.1",
"description": "Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies", "description": "Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies",
"keywords": [ "keywords": [
"ups", "ups",

View File

@@ -211,7 +211,7 @@ nupst feature httpServer # Configure HTTP JSON status API
```bash ```bash
nupst config show # Display current configuration nupst config show # Display current configuration
nupst update # Update to latest version (requires root) nupst upgrade # Upgrade to latest version (requires root)
nupst uninstall # Completely remove NUPST (requires root) nupst uninstall # Completely remove NUPST (requires root)
``` ```
@@ -676,7 +676,7 @@ Any UPS supported by [NUT (Network UPS Tools)](https://networkupstools.org/) —
### Built-in Update ### Built-in Update
```bash ```bash
sudo nupst update sudo nupst upgrade
``` ```
### Re-run Installer ### Re-run Installer

View File

@@ -195,7 +195,7 @@ nupst group edit <id> → nupst group edit <id>
nupst group delete <id> → nupst group remove <id> nupst group delete <id> → nupst group remove <id>
nupst config → nupst config show nupst config → nupst config show
nupst update → nupst update nupst upgrade → nupst upgrade
nupst uninstall → nupst uninstall nupst uninstall → nupst uninstall
nupst help → nupst help / nupst --help nupst help → nupst help / nupst --help
(new) → nupst --version (new) → nupst --version

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/nupst', name: '@serve.zone/nupst',
version: '5.3.0', version: '5.3.1',
description: 'Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies' description: 'Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies'
} }

View File

@@ -266,7 +266,7 @@ export class NupstCli {
case 'resume': case 'resume':
await serviceHandler.resume(); await serviceHandler.resume();
break; break;
case 'update': case 'upgrade':
await serviceHandler.update(); await serviceHandler.update();
break; break;
case 'uninstall': case 'uninstall':
@@ -557,7 +557,7 @@ export class NupstCli {
this.printCommand('config [show]', 'Display current configuration'); this.printCommand('config [show]', 'Display current configuration');
this.printCommand('pause [--duration <time>]', 'Pause action monitoring'); this.printCommand('pause [--duration <time>]', 'Pause action monitoring');
this.printCommand('resume', 'Resume action monitoring'); this.printCommand('resume', 'Resume action monitoring');
this.printCommand('update', 'Update NUPST from repository', theme.dim('(requires root)')); this.printCommand('upgrade', 'Upgrade NUPST from repository', theme.dim('(requires root)'));
this.printCommand('uninstall', 'Completely remove NUPST', theme.dim('(requires root)')); this.printCommand('uninstall', 'Completely remove NUPST', theme.dim('(requires root)'));
this.printCommand('help, --help, -h', 'Show this help message'); this.printCommand('help, --help, -h', 'Show this help message');
this.printCommand('--version, -v', 'Show version information'); this.printCommand('--version, -v', 'Show version information');

View File

@@ -254,7 +254,7 @@ export class ServiceHandler {
try { try {
// Check if running as root // Check if running as root
this.checkRootAccess( this.checkRootAccess(
'This command must be run as root to update NUPST.', 'This command must be run as root to upgrade NUPST.',
); );
console.log(''); console.log('');

View File

@@ -338,7 +338,7 @@ export class NupstDaemon {
logger.logBoxTitle('Update Available', boxWidth); logger.logBoxTitle('Update Available', boxWidth);
logger.logBoxLine(`Current Version: ${updateStatus.currentVersion}`); logger.logBoxLine(`Current Version: ${updateStatus.currentVersion}`);
logger.logBoxLine(`Latest Version: ${updateStatus.latestVersion}`); logger.logBoxLine(`Latest Version: ${updateStatus.latestVersion}`);
logger.logBoxLine('Run "sudo nupst update" to update'); logger.logBoxLine('Run "sudo nupst upgrade" to upgrade');
logger.logBoxEnd(); logger.logBoxEnd();
} }
}).catch(() => {}); // Ignore errors checking for updates }).catch(() => {}); // Ignore errors checking for updates

View File

@@ -235,7 +235,7 @@ export class Nupst implements INupstAccessor {
if (this.updateAvailable && this.latestVersion) { if (this.updateAvailable && this.latestVersion) {
logger.logBoxLine(`Update Available: ${this.latestVersion}`); logger.logBoxLine(`Update Available: ${this.latestVersion}`);
logger.logBoxLine('Run "sudo nupst update" to update'); logger.logBoxLine('Run "sudo nupst upgrade" to upgrade');
logger.logBoxEnd(); logger.logBoxEnd();
} else if (checkForUpdates) { } else if (checkForUpdates) {
logger.logBoxLine('Checking for updates...'); logger.logBoxLine('Checking for updates...');
@@ -244,7 +244,7 @@ export class Nupst implements INupstAccessor {
this.checkForUpdates().then((updateAvailable) => { this.checkForUpdates().then((updateAvailable) => {
if (updateAvailable) { if (updateAvailable) {
logger.logBoxLine(`Update Available: ${this.latestVersion}`); logger.logBoxLine(`Update Available: ${this.latestVersion}`);
logger.logBoxLine('Run "sudo nupst update" to update'); logger.logBoxLine('Run "sudo nupst upgrade" to upgrade');
} else { } else {
logger.logBoxLine('You are running the latest version'); logger.logBoxLine('You are running the latest version');
} }

View File

@@ -164,7 +164,7 @@ WantedBy=multi-user.target
}`, }`,
); );
logger.log( logger.log(
` ${theme.dim('Run')} ${theme.command('sudo nupst update')} ${theme.dim('to upgrade')}`, ` ${theme.dim('Run')} ${theme.command('sudo nupst upgrade')} ${theme.dim('to upgrade')}`,
); );
} else { } else {
logger.log(''); logger.log('');