2.3 Install CLIs

SnarkVM

Install Rust

We recommend installing Rust using rustup. You can install rustup as follows:

Build from Crates.io

We recommend installing snarkvm this way. In your terminal, run:

cargo install snarkvm

Now to use snarkvm, in your terminal, run:

snarkvm

Build from Source Code

Alternatively, you can install snarkvm by building from the source code as follows:

# Download the source code
git clone --branch mainnet --single-branch https://github.com/ProvableHQ/snarkVM.git 
cd snarkVM
git checkout tags/testnet-beta
# Install snarkVM
cargo install --path .

Now to use snarkvm, in your terminal, run:

SnarkOS

Before beginning, please ensure your machine has Rust installed, with at least this version. Instructions to install Rust can be found here.

Start by cloning this GitHub repository:

Next, move into the snarkOS directory:

[For Ubuntu users] A helper script to install dependencies is available. From the snarkOS directory, run:

Lastly, install snarkOS:

Leo

Verify Installation

Build Leo from Source Code

This will generate the executable at ~/.cargo/bin/leo.

To use Leo, run:

VS Code Extension

If you are using VS code, make sure to install the following Leo extension for syntax highlighting:

https://marketplace.visualstudio.com/items?itemName=aleohq.leo-extension

Last updated