Install Pop CLI

1. Install Pop CLI

1.1 For macOS and Linux (Homebrew)

Install Homebrew (if not installed)

Run the official installer (more info here):

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

Add Homebrew to your PATH (if the installer didn’t do it for you):

  • macOS (Apple Silicon):

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$([ -x /opt/homebrew/bin/brew ] && /opt/homebrew/bin/brew shellenv)"
  • Linux:

echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.profile
eval "$([ -x /home/linuxbrew/.linuxbrew/bin/brew ] && /home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Verify:

brew --version

Install Pop CLI with Homebrew:

brew install r0gue-io/pop-cli/pop

1.2 Build from source (any OS)

Firstly, install Rust:

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

And now build pop-cli from source and install it:

cargo install --force --locked pop-cli

2. Set up your environment

pop install

Pop CLI targets ink! v6 by default in the latest releases. If you need ink! v5 support, install version 0.10.0:

cargo install --locked pop-cli --version 0.10.0

Need help?

Ask on Polkadot Stack Exchange (tag it pop) or drop by our Telegram. We're here to help!

Last updated

Was this helpful?