Mamoru Command Line Interface (CLI)
The Mamoru CLI is a powerful tool that allows developers to initialize, build, and publish their projects directly from the command line. This guide will walk you through the basic commands and options available in the Mamoru CLI.
The basic usage of the Mamoru CLI is as follows:
mamoru-cli [options] [command]
-v, --verbose: Use this option to increase verbosity and display execution logs.
-h, --help: Use this option to display help for a command.
The Mamoru CLI provides the following commands:
init command initializes a new project.
init [options] <path>
path: The path to the folder with the project. The default is an empty string.
-t, --type <type>: The type of project. Options are "sql" or "wasm". The default is "wasm".
-c, --chain <chain>: The chain where the daemon runs. Options are "ethereum", "bsc", or "sui".
-n, --name <name>: The name of the project. The default is "Default Name".
-d, --description <description>: The description of the project. The default is "Mamoru Daemon".
-t, --tags <tags>: The tags of the project, comma-separated. The default is "mamoru,daemon".
-l, --logo <logo>: The logo of the project. It should be a URL. The default is "https://mamoru.ai/default-daemon-logo.png (opens in a new tab)".
--subscribable: Indicates if the project is subscribable or standalone. The default is false.
build command compiles the project.
build [options] [path]
path: The path to the folder with the project. The default is "." (the current directory).
--rpc <rpcUrl>: The RPC URL of the chain.
--gas <gas>: The gas fee of the transaction. The default is "200000".
-k, --private-key <key>: The private key of the account that will be used to publish the project.
Remember to replace placeholder values (like
<key>) with your actual values when using these commands.