Skip to content

Latest commit

 

History

History
98 lines (64 loc) · 2.24 KB

install_vega_bins.md

File metadata and controls

98 lines (64 loc) · 2.24 KB

Vega binaries installation

Install automatically

There is a feature available in Capsule that allows fetching supported binaries automatically.

  1. Validate that Capsule is installed
vegacapsule version

Install binaries to custom path

Install the latest version of the vega binaries to given path:

  1. A
vegacapsule install-bins --install-path YOUR_CUSTOM_PATH

Alternatively the binaries can be installed from a specific release tag with install-release-tag flag. To do this follow step 'B' Check for releases.

Please note that minimum supported release tag is v0.54.0.

  1. B
vegacapsule install-bins --install-path YOUR_CUSTOM_PATH --install-release-tag SPECIFIC_RELEASE_TAG
  1. Validate that the binary is accessible from chosen path (YOUR_CUSTOM_PATH) and the version matches the one from previous cmd output. If not, run step 2 again with --install-path flag.
YOUR_CUSTOM_PATH/vega version

Globally install binaries

vegacapsule install-bins
  1. Validate that binaries are accessible through $PATH. And versions matching the one from previous cmd output. If not, please run step 2 again with --install-path flag.
vega version
vega wallet version
vega datanode version

Install manually - build from source (more flexible)

Building from source is more flexible (recommended for local development) because it gives an option of choosing arbitrary version of the binaries.

Caveat - not all binaries versions work with current version of Capsule. For more convenient fast installation please refer to automatic install

Prequsities - this step will require Go 1.19+ installed. Get Go.

go version

Vega

All required binaries come from a single git repository. To build them follow the below instructions

  1. Clone Vega repository
git clone git@github.com:vegaprotocol/vega.git
  1. Enter directory and install from source
cd vega
go install ./...

Alternatively, you can build binaries separately:

cd vega
go install ./cmd/vega
  1. Verify installation
vega version
vega vegawallet version
vega datanode version