There is a feature avalible in Capsule that allows fetching supported binaries automatically.
- Validate that Capsule is installed
vegacapsule version
Install the latest version of the vega binaries to given path:
- 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.
- B
vegacapsule install-bins --install-path YOUR_CUSTOM_PATH --install-release-tag SPECIFIC_RELEASE_TAG
- 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
vegacapsule install-bins
- Validate that binaries are accessible trough $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
Building from source is a more flexible (recomended for local development) because it gives an option of choosing arbitrary version of the binaries.
Caveat - not all binaries versions works 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
All required binaries come from a single git repository. To build them follow the below instructions
- Clone Vega repository
git clone [email protected]:vegaprotocol/vega.git
- Enter directory and install from source
cd vega
go install ./...
Alternatively, you can build binaries separately:
cd vega
go install ./cmd/vega
- Verify installation
vega version
vega vegawallet version
vega datanode version