Preview feature
Binary archives are currently a preview feature and may be enabled only on
selected environments. Behaviour and command flags may change before general
availability.
publish
Uploads a zip archive and registers its metadata against the commit you are currently checked out at.<name> is the archive identifier (for example engine-binaries). The same name should be reused across commits - think of it as a category, not a unique ID. Names are limited to 255 characters and cannot be whitespace-only.
<zip_path> is the local path to the zip file to upload. The path must be absolute - relative paths are rejected by the agent.
<unpack> declares where the archive should land when later fetched. Two forms are supported:
<dst>- unpack the entire zip into<dst>.<dst>=<src>- unpack only the<src>sub-path from inside the zip into<dst>.
<unpack> arguments may be passed in a single call. Each <dst> must be unique. Paths follow these rules:
<dst>is relative to the workspace root - no leading slash, no drive letters, no parent traversal (..).<src>uses forward slashes even on Windows (zip entries are POSIX-style). An empty<src>(or omitting the=<src>suffix) means “the root of the zip”.- Trailing slashes on either side are normalised; matching is by lexical prefix.
Engine/Binaries and Engine/Plugins into the project’s Binaries/ and Plugins/ directories:
Published '<name>' from <commit> (sha=<blob-sha>).
Constraints and behaviour
- The workspace must be clean (no uncommitted changes) when you publish. The archive is bound to the currently checked-out commit.
- Publishing the same
(<name>, commit)pair twice is not allowed. The second publish returns a conflict error. To publish a new build for the same commit, use a different<name>. - The zip is hashed and uploaded through Diversion’s blob storage; uploads are deduplicated against blobs already present.
- Publishing requires write access to the repository.
fetch
Downloads an archive that was published against a specific commit and unpacks it into the paths registered at publish time.<name> is the archive name used at publish time.
--commit is required and identifies the commit the archive was published against. Fetching by commit (rather than “latest”) guarantees the binaries match the source state of that commit - there is no drift between code and binaries.
Downloading, Extracting), bytes transferred / total, and a spinner. On success it prints Fetched '<name>' from <commit>.
Constraints and behaviour
- Every
<dst>registered for the archive must either not exist or be empty in the workspace before the fetch starts. If anything is present, the fetch is rejected and no files are written. - The fetch streams into a staging directory under
.diversion/binary-archives/and only moves files into place once the unpack succeeds. A failed fetch will not leave a half-populated<dst>. - Pressing Ctrl-C cancels the CLI, but the underlying download continues on the agent until it terminates on its own. Re-running
dv archive fetchwhile the previous job is still in flight will be rejected with a conflict. - Fetching requires read access to the repository.
list
Lists the archives that have been published in the current repository.UNPACK column is informational - the comma-separated form is not directly reusable as publish arguments (each unpack target is a separate argument on the command line).
How this maps to UGS Precompiled Binaries
If you are coming from Unreal Game Sync, the mental model translates directly:
Because
<unpack> is configurable, archives also work outside Unreal: compiled native plugins, generated content packs, packaged dependencies, or any other large binary artifact you want pinned to a commit.
Typical flow
-
A build machine (or a programmer) builds the binaries at commit
<X>. -
Zip the outputs and publish them while checked out at commit
<X>: -
Anyone else runs:
and gets a working environment without rebuilding.

