Skip to content

decentldotland/mem-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@decentdotland/mem-cli

a CLI to interact with the MEM protocol

Build & Run Server

git pull https://github.com/decentldotland/mem-cli.git

npm install && npm run server

Install the CLI

npm i -g mem-cli-js

CLI Commands

Deploy a MEM serverless function:

mem deploy --src [path-to-source-code] --init-state [stringified-initial-state || ./path-to-state.json] --testnet [optional to deploy on MEM Carbon testnet]

Example

mem deploy --src ./function.js --init-state '{"logs": []}'

Write to a MEM serverless function:

mem write --functionId [MEM function ID] --inputs [the contract interaction stringified inputs object] --testnet [optional to write to a MEM Carbon function]

Example

mem write --function-id e695edc7-4919-0a1d-3d99-b725661904ad --inputs '{"function":"increment"}'

License

This project is licensed under the MIT License