Skip to main content
Version: Next

Create Context

Initialize node

Terminal
merod --node-name node1 init --server-port 2428 --swarm-port 2528

Node configuration file contains protocol defined metada and is located at ~/.calimero/your_node_name/config.toml.

Run node

Terminal
merod --node-name node1 run

Wait for a few moments and node logs should appear.

Create a New Context

Terminal
meroctl --node node1 context create --application-id 3Hfk2VekXQ58vYHW3hUtA3mh2Rwtb1brV1RKEXtfvfsf --protocol near
tip
  • --application-id flag specifies the application ID to attach to the context
  • --protocol flag specifies the protocol to use for the context
  • --as flag creates an alias for your identity in your context, you can use it instead of the PublicKey

You have now created a new context.

To create an alias for this context, use:

Terminal
meroctl --node node1 context alias add my_context 3Hfk2VekXQ58vYHW3hUtA3mh2Rwtb1brV1RKEXtfvfsf

Next step is to invite users to join your context. Continue with invitations and joinings.

Was this page helpful?
Need some help? Check Support page