oz0 server dist pull

Mirror a release into the dist directory the edge serves.

For: Operators and developers looking up a command.

Mirror a release into the dist directory the edge serves. URL is where a release's dist folder is served: manifest.json, manifest.json.sig and the files they name. --from takes it from a folder on this machine instead: an offline folder, whose dist/ holds the release, or a dist folder.

The release's signature must be by a key this server binary trusts, and every file must match its digest; the toolchain nodes install before their runtime comes along, each file checked against toolchain.json; the manifest goes in place last, so nodes see the new release whole or not at all. Then node upgrade --binary moves nodes to it.

It keeps to a release channel: the release's signed channel must be one the cluster follows (the cluster's, with the database; else the folder's), and on the same channel it never mirrors an older node version over a newer one. --switch-channel and --allow-older, each with --reason, are the explicit acts; with the database a switch moves the cluster's channel too, and both are recorded in the audit log.

Usage

oz0 server dist pull [URL] [flags]

Flags

FlagTypeDefaultDescription
--allow-olderboolmirror a release older than the one the folder serves on the same channel; needs --reason
--channelchannelthe cluster's, with the database; else the dist folder's, or stablethe release channel to keep to: stable, preview or lts-<major>.<minor>
--data-dirstring~/.local/share/orchestrator-zeroserver data directory
--db-filefilea file (- for stdin) holding the PostgreSQL URL of the management database, such as postgres://oz0:PASSWORD@db:5432/oz0 (or set OZ0_DB); the URL can carry a password, so it never goes on the command line
--devboola dev server's data directory (--data-dir) instead of a cluster's database
--dist-dirstringthe dist folder next to this binary's folderthe edge's dist directory
--fromfoldera folder on this machine to take the release from: an offline folder or a dist folder, instead of a URL
--reasonstringwhy, for --switch-channel and --allow-older (in the audit log with the database)
--switch-channelboolmove to --channel from the channel the cluster (or the folder) follows; needs --reason, and with the database sets the cluster's channel, audited

Inherited flags

FlagTypeDefaultDescription
--contextstring$OZ0_CONTEXT or <config dir>/orchestrator-zero/context.jsonCLI context file written by server init
--log-levelstringinfolog level: debug, info, warn or error

See all oz0 commands and the global flags.

On this page
Copyright © 2026