@stackone/cli 1.13.3 → 1.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -427,6 +427,47 @@ stackone --version
427
427
  stackone -v
428
428
  ```
429
429
 
430
+ ### `update`
431
+
432
+ Update the StackOne CLI to the latest version. This command checks for newer versions and automatically updates the CLI if a newer version is available.
433
+
434
+ ```bash
435
+ stackone update
436
+ ```
437
+
438
+ **Options:**
439
+
440
+ - `-f, --force` - Force reinstall the CLI even if already on the latest version
441
+
442
+ **Usage Examples:**
443
+
444
+ 1. **Check and update to latest version:**
445
+
446
+ ```bash
447
+ stackone update
448
+ ```
449
+
450
+ 2. **Force reinstall (useful for fixing corrupted installations):**
451
+
452
+ ```bash
453
+ stackone update --force
454
+ ```
455
+
456
+ **Features:**
457
+
458
+ - **Automatic version detection**: Checks NPM registry for the latest available version
459
+ - **Smart updates**: Only updates when a newer version is available (unless `--force` is used)
460
+ - **Clear feedback**: Shows current and new version numbers with color-coded output
461
+
462
+ **How it works:**
463
+
464
+ The update command compares your currently installed version with the latest version published on NPM. If a newer version is found, it will:
465
+
466
+ 1. Display the version upgrade path (e.g., `1.0.0 → 1.1.0`)
467
+ 2. Automatically run the install command
468
+
469
+ If you're already on the latest version, the command will confirm this and exit without making changes (unless you use the `--force` flag).
470
+
430
471
  ## Agent Commands
431
472
 
432
473
  The CLI includes agent commands for AI-assisted configuration building.
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require(`./cliCore-C4KqAT0G.cjs`);new e.t().run();
2
+ const e=require(`./cliCore-C1-E6aOI.cjs`);new e.t().run();
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cliCore-DqtTq2a4.mjs";new e().run();export{};
2
+ import{t as e}from"./cliCore-BmfsQBm6.mjs";new e().run();export{};