Installing cargo-concordium

This section will walk you through installing cargo-concordium.

To build and test smart contracts on the Concordium blockchain, you'll need the cargo-concordium tool. It serves as a specialized compiler and developer environment for Concordium contracts.

Follow the steps outlined below:

Step 1: Install cargo-concordium

To install cargo-concordium, run the following command in your terminal:

cargo install --locked cargo-concordium

If cargo-concordium is already installed, you may see a message indicating its presence:

The reason cargo-concordium might already be installed is that adding the "wasm32-unknown-unknown" target with "rustup target add wasm32-unknown-unknown" also installs cargo-concordium for WASM development.

Step 2: Installing a Different Version (Optional)

If you need to install a specific version of cargo-concordium, you can do so by using the following command format:

cargo install --locked --force cargo-concordium=your-desired-version

Exercise caution when using this command, as it may overwrite existing versions and settings, potentially causing compatibility issues.

For this tutorial, we'll use version 3.2.0.

Step 3: Learning How to Use cargo-concordium

To learn how to use cargo-concordium, you can run the following command:

cargo concordium --help

This command will display usage information, including available flags and subcommands, in your terminal:

Last updated