update Command
The update command downloads and installs the latest version of the pakyas CLI.
pakyas update [flags]Examples
Section titled “Examples”# Update to the latest versionpakyas update
# Check for updates without installingpakyas update --check| Flag | Description |
|---|---|
--check | Check for updates without installing |
Behavior
Section titled “Behavior”- Checks the server for the latest available version
- If already up to date, displays a success message
- Downloads the appropriate binary for your platform
- Verifies the SHA256 checksum
- Atomically replaces the current binary
Supported Platforms
Section titled “Supported Platforms”- macOS (Intel and Apple Silicon)
- Linux (x64 and ARM64)
Permissions
Section titled “Permissions”If the CLI is installed in a system directory (like /usr/local/bin), you may need elevated permissions:
sudo pakyas updateExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success (updated or already up to date) |
| 1 | Error (network, permission, checksum mismatch) |
See Also
Section titled “See Also”- Installation - Initial CLI installation
- ping Command - Send pings to checks
- monitor Command - Wrap commands with monitoring