Linux

These instructions will guide you on installing the necessary prerequisites for Linux to install Pop CLI and use all its features.

For Fedora

sudo dnf update
sudo dnf install clang curl git openssl-devel make protobuf-compiler

For OpenSUSE

sudo zypper install clang curl git openssl-devel llvm-devel libudev-devel make protobuf

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Don't forget to update the shell to include the necessary environment variables.

source $HOME/.cargo/env

You should now have Rust installed. Double check.

rustc --version

Now let's configure the Rust toolchain.

rustup default stable
rustup update
rustup target add wasm32-unknown-unknown

And add the nightly release channel.

rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

You can confirm your Rust toolchain was installed properly with the following commands.

rustup show
rustup +nightly show

Awesome. The environment has now been set up. We are now ready to install and use Pop CLI.

Install Pop CLI

To install Pop CLI run the following command

cargo install --force --locked pop-cli

Confirm that Pop CLI is installed by running pop --help in your terminal

pop --help

Last updated