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.

Four workflow panels show recording version and path, running upgrade deliberately, verifying the release SHA-256, and retesting from a fresh process.
The diagram covers recording version and path, running upgrade deliberately, verifying the release SHA-256, and retesting from a fresh process. Open full-size screenshot.

Before you start

  • Run dosya --version and 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

  1. Run dosya --version and confirm the active executable with the operating system’s path lookup. Stop if the job is invoking a development checkout.
  2. Invoke dosya upgrade from an interactive maintenance window. Use --force only to reinstall the same version or make an intentionally approved downgrade.
  3. Let the updater select the platform artifact. Reject an unsupported architecture instead of substituting a similarly named binary.
  4. Require the downloaded SHA-256 to match the release manifest. Reject the downloaded artifact on a checksum mismatch and leave the installed binary unchanged.
  5. Allow the updater to stage an executable temporary file with mode 0755 and replace the target through rename or its copy fallback.
  6. Run dosya --version again from a fresh shell, then perform a read-only whoami --json check before re-enabling scheduled jobs.
Dosya CLI overview with installation and command references for update the dosya cli.
The CLI overview supplies the installation and command references used by “Update the Dosya CLI”. Open full-size screenshot.

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.

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.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.