macOS

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

Install

First, we will need Homebrew - the macOS package manager. Run the following in your Terminal.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Make sure brew installed properly.

brew --version

And let's make sure brew is up-to-date with the latest packages.

brew update

Now let's install the necessary packages.

brew install cmake openssl protobuf

Cool. Now let's 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 ~/.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