Skip to main content
Version: Next

cargo-mero

A Cargo subcommand for building applications on the Calimero network.

Installation

You can choose to install cargo-mero via cargo or from source.

If you use have Rust installed, you can install cargo-mero directly with the following steps:

  1. Install the cli via cargo:

    cargo install cargo-mero --git https://github.com/calimero-network/core.git
  2. Verify the installation:

    cargo mero --version

If the version number appears, the installation was successful.

Make sure ~/.cargo/bin is in your PATH so that cargo mero is available as a subcommand.

Commands

new

Scaffold a new Calimero application.

Terminal
cargo mero new <app-name>

build

Build your Calimero application to WASM.

Terminal
cargo mero build [OPTIONS]

Build Options

OptionDescription
--lockedAssert that Cargo.lock will remain unchanged
--no-releaseBuild app in dev profile, without optimizations
-v, --verboseUse verbose output
-q, --quietDo not print cargo log messages
-F, --featuresSpace or comma separated list of features to activate
--no-default-featuresNo default features
-h, --helpPrint help

Example: Build with options

Terminal
cargo mero build --verbose --features feature1,feature2 --no-release

help

Prints the help message or the help of the given subcommand(s).

Terminal
cargo mero --help
Was this page helpful?
Need some help? Check Support page