CLI

wvb deploy

Mark an already-uploaded bundle version as the current one that clients receive.

wvb deploy promotes a bundle version that is already on the remote to be the current version. Clients that download the bundle then receive that version. Uploading a bundle stores it on the remote but does not make it current — deploy is the step that flips the switch.

Run it after wvb upload, or pass --deploy to upload to combine both steps in one command.

Usage

wvb deploy app --version 1.2.0
wvb deploy app --version 1.2.0 --channel beta
wvb deploy                                     # uses config / package.json defaults

The bundle name is the positional BUNDLE argument and falls back to the resolved name from your config or package.json. The version is the --version (-V) flag — there is no positional version argument.

Options

OptionAliasesDefaultDescription
BUNDLEresolved from configBundle name to deploy.
--version-Vconfig or package.json versionVersion to mark as current.
--channelRelease channel to deploy to.
--config-Cconfig auto-discoveryPath to the config file.
--cwdprocess.cwd()Working directory for resolving paths.

The global flags --color, --log-level, and --log-verbose also apply. See the CLI overview for details.

Requirements

deploy requires remote.deployer in your config. The deployer is the component that records which version is current on the remote, so you cannot deploy to a remote without one.

The version is the --version (-V) flag, not a positional argument. If you omit it, deploy uses the version resolved from your config or the nearest package.json.

On this page