Install & First Run
Both binaries live in this repository: merod (the node) and meroctl (the
command line).
| Platform | merod |
meroctl |
|---|---|---|
| Linux (x86_64, aarch64; glibc 2.35 or newer: Ubuntu 22.04, Debian 12 and later) | native | native |
| macOS (Apple silicon) | native, from 1.0.0-rc.25 (or in Docker) | native |
| Windows | not supported | not supported |
Production nodes run in Intel TDX VMs, which are Linux only; on a laptop you
run nodes in development mode (--dev, or merod local), with mock
attestation.
Install a release
Section titled “Install a release”scripts/install.sh downloads a release’s archives, checks each against the
release’s SHA256SUMS, and puts the binaries in ~/.local/bin (or
CALIMERO_INSTALL_DIR, or --dir DIR). Without --version it takes the newest
release, release candidates included.
# meroctl (Linux x86_64 and aarch64, macOS aarch64)curl -fsSL https://raw.githubusercontent.com/calimero-network/core/master/scripts/install.sh | sh
# merod and meroctl, a pinned releasecurl -fsSL https://raw.githubusercontent.com/calimero-network/core/master/scripts/install.sh \ | sh -s -- merod meroctl --version 1.0.0-rc.24It replaces the calimero-network/install-sh repository’s scripts. Homebrew
installs the same binaries:
brew install calimero-network/tap/meroctl calimero-network/tap/merodWith a release before 1.0.0-rc.25, which shipped no macOS merod, the installer
skips it on a Mac with a note. meroctl local up runs the node in the release’s
Docker image anyway; merod is only needed for --local.
The toolchain is pinned in rust-toolchain.toml (Rust 1.98.0); rustup
selects it. The build needs clang, libclang-dev, make, pkg-config and
libssl-dev (Debian/Ubuntu names).
git clone https://github.com/calimero-network/corecd corecargo build --locked --release -p merod -p meroctl# or put them on PATH:cargo install --locked --path crates/merodcargo install --locked --path crates/meroctlThe binaries land in target/release/. On macOS, install only meroctl and
run merod in Docker.
Every release publishes a merod image, for Linux amd64 and arm64:
ghcr.io/calimero-network/merod:<version>, plus latest (the newest stable
release) and prerelease (the newest release candidate). Its entrypoint is
merod, running as an unprivileged user, with CALIMERO_HOME=/data and
/data a volume. It holds merod only; install meroctl on the host.
docker pull ghcr.io/calimero-network/merod:prereleasedocker run --rm ghcr.io/calimero-network/merod:prerelease --helpArguments after the image name go to merod. To run a node built from your
own checkout, the root Dockerfile builds the same kind of image:
docker build -t merod ..
First run on Linux: a local cluster
Section titled “First run on Linux: a local cluster”-
Start three nodes in one process:
Terminal window meroctl local upIt runs
merod localin the release’s Docker image, in the background (Docker must be installed and running;--localruns themerodonPATHinstead). The nodes listen onhttp://127.0.0.1:2501/to2503, with mock attestation and a development storage key, and keep state in~/.calimero/meroctl/local/(--freshstarts over), someroctl local downandstatusfind it from any directory.meroctlsaves the cluster as the nodelocal, trusting its mock attestation, and makes it the default node if you have none. It prints the node URLs and the Ops token (opsToken);meroctl local statusprints them again andmeroctl local downstops the cluster. -
Sign up with a file passkey (development clusters only):
Terminal window meroctl login --dev-passkey ./dev-passkey.json --name ada -
Check it:
Terminal window meroctl network status # node, release, system leadermeroctl whoamimeroctl --ops-token <opsToken> ops status # the token local up and local status print
Then deploy an app: Quickstart.
The cluster in Docker
Section titled “The cluster in Docker”meroctl local up runs the merod local cluster in the published image, on
Linux and macOS alike. By hand, the same thing: --bind 0.0.0.0
makes its nodes listen on every interface of the container, so the published
ports reach them, at the same URLs as on Linux:
docker run --rm -p 2501-2503:2501-2503 -v merod-local:/data \ ghcr.io/calimero-network/merod:prerelease \ local --bind 0.0.0.0 --ops-token devtoken- Mock attestation, a development storage key and raw WASM uploads, as
merod localon Linux; each app gets three replicas. - State is in the
merod-localvolume, under/data/.merod-local(--freshstarts over). - Use
:latestfor the newest stable release, or:<version>to pin one; matchmeroctl’s release to it.
meroctl local up does this in the background, saves the node
as local and waits until it serves (meroctl local down stops it).
Then, from the host:
meroctl node add local http://127.0.0.1:2501/ --allow-mockmeroctl login --dev-passkey ./dev-passkey.json --name adameroctl network statusNext steps
Section titled “Next steps”- Quickstart: install, create and call an app.
- merod and meroctl: every command.
- Production deployment: a TDX cluster.