CLI

wvb download

Download a bundle from a remote server to disk, or fetch and print its metadata.

wvb download fetches a bundle from a remote server and, by default, saves it to disk as a .wvb file. Pass a bundle name and an optional version; omit it to download the version that is currently deployed. This is the read side of the publishing workflow that wvb upload and wvb deploy drive, and it is handy for verifying what a remote actually serves.

Usage

wvb download app --endpoint https://updates.example.com
wvb download app 1.2.0 --out ./bundles/app.wvb --overwrite
wvb download app --no-write

The first example downloads the current deployed version of app to app.wvb in the working directory. The second downloads a specific version (1.2.0) to an explicit path, overwriting any existing file. The third fetches the bundle and prints its information without writing anything to disk.

The bundle name and the endpoint both fall back to your wvb.config file, so inside a configured project you can usually run wvb download with no flags to pull the current version.

Options

OptionAliasesDefaultDescription
BUNDLEfrom configBundle name (positional). Resolves from config when omitted.
VERSIONcurrent deployedSpecific version (positional). Omit to download the current deployed version.
--out-O<bundle name>.wvbOutput file path.
--endpoint-Eremote.endpointRemote endpoint to download from.
--channelRelease channel.
--writetrueWrite the bundle to disk. Pass --no-write to fetch and print info only.
--overwritefalseOverwrite an existing output file.
--progresstrueShow a download progress bar. Pass --no-progress to disable.
--config-Cauto-discoveryPath to the config file.
--cwdprocess.cwd()Working directory for resolving paths.

Boolean flags accept --flag, --flag=true|false, and a --no-flag negation. The three global flags (--color, --log-level, --log-verbose) apply here too; see the CLI overview.

With a version positional, wvb download requests that exact version; without one, it downloads the current deployed version for the given channel. Serving a non-current version requires the remote to allow other versions.

--no-write fetches the bundle and prints its information without saving a file. Use it to inspect what a remote serves without touching disk. To see metadata without downloading the bundle body at all, use wvb remote current instead.

On this page