{"id":19810416,"url":"https://github.com/decentldotland/mem-cli","last_synced_at":"2025-02-28T13:15:39.714Z","repository":{"id":185592554,"uuid":"672504703","full_name":"decentldotland/mem-cli","owner":"decentldotland","description":"CLI for interacting with the MEM protocol","archived":false,"fork":false,"pushed_at":"2023-12-19T11:37:48.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-11T15:51:31.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decentldotland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T10:10:10.000Z","updated_at":"2023-12-01T14:05:49.000Z","dependencies_parsed_at":"2023-12-01T15:30:31.867Z","dependency_job_id":"3a2d4a50-feb8-46c4-91b8-ac47b834352e","html_url":"https://github.com/decentldotland/mem-cli","commit_stats":null,"previous_names":["decentldotland/mem-cli"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentldotland%2Fmem-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentldotland%2Fmem-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentldotland%2Fmem-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentldotland%2Fmem-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decentldotland","download_url":"https://codeload.github.com/decentldotland/mem-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241156295,"owners_count":19919336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T09:21:27.015Z","updated_at":"2025-02-28T13:15:39.680Z","avatar_url":"https://github.com/decentldotland.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://decent.land\"\u003e\r\n    \u003cimg src=\"https://github.com/decentldotland/MEM/assets/77340894/d840ef84-540f-4ccc-a7e0-1ed03c4af8dd\" height=\"180\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ch3 align=\"center\"\u003e\u003ccode\u003e@decentdotland/mem-cli\u003c/code\u003e\u003c/h3\u003e\r\n  \u003cp align=\"center\"\u003ea CLI to interact with the MEM protocol\u003c/p\u003e\r\n\u003c/p\u003e\r\n\r\n\r\n\r\n## Build \u0026 Run Server\r\n\r\n```bash\r\ngit pull https://github.com/decentldotland/mem-cli.git\r\n\r\nnpm install \u0026\u0026 npm run server\r\n```\r\n\r\n## Install the CLI\r\n\r\n```bash\r\nnpm i -g mem-cli-js\r\n```\r\n\r\n## CLI Commands\r\n\r\n### Deploy a MEM serverless function:\r\n\r\n```bash\r\nmem deploy --src [path-to-source-code] --init-state [stringified-initial-state || ./path-to-state.json] --testnet [optional to deploy on MEM Carbon testnet]\r\n```\r\n\r\n#### Example\r\n\r\n```bash\r\nmem deploy --src ./function.js --init-state '{\"logs\": []}'\r\n```\r\n\r\n### Write to a MEM serverless function:\r\n\r\n```bash\r\nmem write --functionId [MEM function ID] --inputs [the contract interaction stringified inputs object] --testnet [optional to write to a MEM Carbon function]\r\n```\r\n\r\n#### Example\r\n\r\n```bash\r\nmem write --function-id e695edc7-4919-0a1d-3d99-b725661904ad --inputs '{\"function\":\"increment\"}'\r\n```\r\n\r\n## License\r\nThis project is licensed under the [MIT License](./LICENSE)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecentldotland%2Fmem-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecentldotland%2Fmem-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecentldotland%2Fmem-cli/lists"}