Skip to content

update Command

The update command downloads and installs the latest version of the pakyas CLI.

Terminal window
pakyas update [flags]
Terminal window
# Update to the latest version
pakyas update
# Check for updates without installing
pakyas update --check
FlagDescription
--checkCheck for updates without installing
  1. Checks the server for the latest available version
  2. If already up to date, displays a success message
  3. Downloads the appropriate binary for your platform
  4. Verifies the SHA256 checksum
  5. Atomically replaces the current binary
  • macOS (Intel and Apple Silicon)
  • Linux (x64 and ARM64)

If the CLI is installed in a system directory (like /usr/local/bin), you may need elevated permissions:

Terminal window
sudo pakyas update
CodeMeaning
0Success (updated or already up to date)
1Error (network, permission, checksum mismatch)