Update the Dosya CLI
Check the installed Dosya CLI version, verify the trusted release checksum, and replace only a supported compiled binary with an approved build.
Last reviewed
dosya upgrade is for an installed compiled binary, not a source checkout. Supported release targets are Linux x64, macOS arm64 or x64, and Windows x64.

Before you start
- Run
dosya --versionand record the current binary path before changing it. - Use the official trusted API origin. A custom release host requires the explicit custom-host allowance and should be approved by your organization.
- The release manifest request times out after 30 seconds; the binary download allows 300 seconds.
Steps
- Run
dosya --versionand confirm the active executable with the operating system’s path lookup. Stop if the job is invoking a development checkout. - Invoke
dosya upgradefrom an interactive maintenance window. Use--forceonly to reinstall the same version or make an intentionally approved downgrade. - Let the updater select the platform artifact. Reject an unsupported architecture instead of substituting a similarly named binary.
- Require the downloaded SHA-256 to match the release manifest. Reject the downloaded artifact on a checksum mismatch and leave the installed binary unchanged.
- Allow the updater to stage an executable temporary file with mode 0755 and replace the target through rename or its copy fallback.
- Run
dosya --versionagain from a fresh shell, then perform a read-onlywhoami --jsoncheck before re-enabling scheduled jobs.

Expected result
The supported compiled binary is replaced only after manifest and SHA-256 verification. A fresh invocation reports the approved version and can authenticate for a read-only check.
Troubleshooting
Upgrade says the runtime is unsupported. Install a published compiled binary for the supported operating system and architecture.
The checksum differs. Retry from the trusted origin; never bypass verification.
The old version still runs. Inspect command lookup order and long-lived processes. A successful file replacement does not change an already running process.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.