meroctl CLI Reference
meroctl is the command-line client for Calimero nodes. Use it to install applications, create and manage contexts, call application methods, and work with blobs. This page covers the handful of commands you’ll use most; for the exhaustive command reference see the Core operate docs.
Install
Section titled “Install”brew install calimero-network/tap/meroctlConnecting to a node
Section titled “Connecting to a node”Target a node by alias (configured in ~/.calimero/config.toml) or by direct URL:
meroctl --node node1 <command>meroctl --api http://localhost:2528 <command>Most-common commands
Section titled “Most-common commands”Install an app — this returns an application id (it does not take one):
meroctl --node node1 app install --path res/my_app.wasmCreate a context for an installed app:
meroctl --node node1 context create --application-id <APP_ID>List contexts:
meroctl --node node1 context lsCall a method — the method name is positional; --context and --args follow, and --as optionally selects the executor public key:
# mutationmeroctl --node node1 call set --context <CTX> --args '{"key":"hello","value":"world"}'
# view (read-only)meroctl --node node1 call get --context <CTX> --args '{"key":"hello"}'
# call as a specific identitymeroctl --node node1 call set --context <CTX> --args '{...}' --as <PUBLIC_KEY>Work with blobs:
meroctl --node node1 blob lsmeroctl --node node1 blob upload --file demo.png --context-id <CTX>meroctl --node node1 blob download --blob-id <BLOB_ID> --output demo.pngHealth checks are not a meroctl command. Use
merobox healthorGET /admin-api/healthon the node.
Full reference
Section titled “Full reference”The complete command set — application packages, context aliases and sync, namespaces and groups for multi-node participation, peers, output formats (--output-format json), and every flag — is documented at:
- meroctl reference: https://calimero-network.github.io/core/operate/meroctl/
Related topics
Section titled “Related topics”- Applications — building applications the CLI drives
- Contexts — understanding context operations
- Developer Tools — merobox and local development
- Operator Track — running and managing nodes