11# Update
22
3- Self-update the CLI to the latest version. Detects whether the CLI was installed via a package manager or as a standalone binary and acts accordingly.
3+ Self-update the CLI to the latest version.
44
55## Usage
66
@@ -16,9 +16,7 @@ jup update --check
1616
17171 . Checks the latest release on GitHub
18182 . Compares with the installed version
19- 3 . If a newer version is available:
20- - ** Package manager installs** — runs the appropriate update command (npm, pnpm, yarn, bun, or Volta)
21- - ** Binary installs** — downloads the new binary, verifies its SHA-256 checksum, and atomically replaces the current binary
19+ 3 . If a newer version is available, fetches and runs ` install.sh ` which handles the update (Volta → npm → standalone binary fallback)
22204 . Outputs the result
2321
2422## JSON output
@@ -38,24 +36,14 @@ jup update --check
3836 " status" : " update_available"
3937}
4038
41- // Updated via package manager
39+ // Updated
4240{
4341 " currentVersion" : " 0.3.0" ,
4442 " latestVersion" : " 0.4.0" ,
45- " status" : " updated" ,
46- " method" : " npm"
47- }
48-
49- // Updated via binary
50- {
51- " currentVersion" : " 0.3.0" ,
52- " latestVersion" : " 0.4.0" ,
53- " status" : " updated" ,
54- " method" : " binary"
43+ " status" : " updated"
5544}
5645```
5746
5847## Notes
5948
60- - Binary updates require write permission to the binary path. If you get a permission error, run ` sudo jup update ` .
61- - Binary builds are available for: ` linux-x64 ` , ` linux-arm64 ` , ` darwin-x64 ` , ` darwin-arm64 ` .
49+ - Supported platforms: ` linux-x64 ` , ` linux-arm64 ` , ` darwin-x64 ` , ` darwin-arm64 ` .
0 commit comments