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.
- Cargo
- From Source
If you use have Rust installed, you can install cargo-mero directly with the following
steps:
-
Install the cli via cargo:
cargo install cargo-mero --git https://github.com/calimero-network/core.git -
Verify the installation:
cargo mero --version
If the version number appears, the installation was successful.
Steps
-
Open your terminal and run:
git clone https://github.com/calimero-network/core.git
cd core
cargo install --path crates/cargo-mero -
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
| Option | Description |
|---|---|
--locked | Assert that Cargo.lock will remain unchanged |
--no-release | Build app in dev profile, without optimizations |
-v, --verbose | Use verbose output |
-q, --quiet | Do not print cargo log messages |
-F, --features | Space or comma separated list of features to activate |
--no-default-features | No default features |
-h, --help | Print 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?