{"id":28436886,"url":"https://github.com/moleculerjs/moleculer-cli","last_synced_at":"2026-04-02T17:01:02.942Z","repository":{"id":20810295,"uuid":"90976707","full_name":"moleculerjs/moleculer-cli","owner":"moleculerjs","description":":herb: Command line tool for Moleculer","archived":false,"fork":false,"pushed_at":"2026-03-27T17:47:21.000Z","size":1714,"stargazers_count":51,"open_issues_count":4,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-03-28T01:28:46.717Z","etag":null,"topics":["cli","command-line-tool","moleculer"],"latest_commit_sha":null,"homepage":"http://moleculer.services/docs/moleculer-cli.html","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/moleculerjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-05-11T12:28:39.000Z","updated_at":"2026-03-08T09:48:07.000Z","dependencies_parsed_at":"2022-08-08T14:15:15.468Z","dependency_job_id":"48316816-325b-4297-b799-9ba2c66fdc91","html_url":"https://github.com/moleculerjs/moleculer-cli","commit_stats":{"total_commits":178,"total_committers":15,"mean_commits":"11.866666666666667","dds":0.2191011235955056,"last_synced_commit":"7226eeb22f517c7ef937a8a95e91ac35149710db"},"previous_names":["ice-services/moleculer-cli"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/moleculerjs/moleculer-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moleculerjs","download_url":"https://codeload.github.com/moleculerjs/moleculer-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-cli/sbom","scorecard":{"id":657607,"data":{"date":"2025-08-11","repo":{"name":"github.com/moleculerjs/moleculer-cli","commit":"5598ca97661a85bdedc46553b152953f6f5ebd20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 6/21 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":8,"reason":"9 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/moleculerjs/moleculer-cli/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/moleculerjs/moleculer-cli/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8jmw-wjr8-2x66","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T15:07:02.093Z","repository_id":20810295,"created_at":"2025-08-21T15:07:02.093Z","updated_at":"2025-08-21T15:07:02.093Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","command-line-tool","moleculer"],"created_at":"2025-06-05T23:07:52.094Z","updated_at":"2026-04-02T17:01:02.935Z","avatar_url":"https://github.com/moleculerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Moleculer logo](http://moleculer.services/images/banner.png)](https://github.com/moleculerjs/moleculer)\n\n# Command line tool for Moleculer framework [![NPM version](https://img.shields.io/npm/v/moleculer-cli.svg)](https://www.npmjs.com/package/moleculer-cli)\n\n## Features\n- Initialize new projects from templates (Handlebars \u0026 Nunjucks support)\n- Create Moleculer services interactively\n- Connect to a running Moleculer system with REPL\n- Call service actions and emit events from the command line\n- Start a local broker with REPL\n\n## Requirements\n\n- Node.js \u003e= 22\n\n## Install\n\n``` bash\nnpm install -g moleculer-cli\n```\n\n## Usage\n\n### Initialize a new project\n\n``` bash\n# Init from an official template\nmoleculer init project my-first-project\n\n# Init a module\nmoleculer init module my-module\n\n# Init from a GitHub repo\nmoleculer init username/repo my-project\n\n# Init from a local template\nmoleculer init ./my-template my-project\n\n# Provide answers from a JSON file (non-interactive)\nmoleculer init project my-project --answers answers.json\n\n# Provide answers inline\nmoleculer init project my-project --@name=my-project --@description=\"My project\"\n\n# Skip npm install\nmoleculer init project my-project --no-install\n```\n\n[**Official templates**](https://github.com/topics/moleculer-template)\n\n### Create a service\n\n``` bash\n# Create a service interactively\nmoleculer create service\n\n# Create a named service\nmoleculer create service users\n\n# Create a TypeScript service\nmoleculer create service users --typescript\n```\n\n### Start a local broker\n\nStart a new ServiceBroker locally and switch to REPL mode.\n\n```bash\nmoleculer start\n\n# With custom config\nmoleculer start -c moleculer.config.js\n\n# With hot-reload\nmoleculer start --hot\n```\n\n### Connect to a remote broker\n\nStart a new ServiceBroker, connect to a transporter and switch to REPL mode.\n\n```bash\n# With TCP transporter\nmoleculer connect\n\n# With NATS transporter\nmoleculer connect nats://localhost:4222\n\n# With Redis transporter\nmoleculer connect redis://localhost\n\n# With MQTT transporter\nmoleculer connect mqtt://localhost\n```\n\n### Call a service action\n\n```bash\n# Call an action via NATS\nmoleculer call greeter.hello -t nats://localhost:4222\n\n# Call with parameters (JSON after --)\nmoleculer call math.add -t nats://localhost:4222 -- --a=5 --b=3\n```\n\n### Emit an event\n\n```bash\n# Emit an event\nmoleculer emit user.created -t nats://localhost:4222 -- --id=123\n\n# Broadcast an event\nmoleculer emit user.created -t nats://localhost:4222 --broadcast -- --id=123\n```\n\n### Alias a template\n\nSave a template URL under a short name for use with `moleculer init`.\n\n```bash\n# Create an alias\nmoleculer alias-template my-template https://github.com/user/repo\n\n# Use the alias\nmoleculer init my-template my-project\n```\n\n## Documentation\nPlease read our [documentation on Moleculer site](http://moleculer.services/docs/moleculer-cli.html)\n\n## Credits\nThe `moleculer-cli` project `init` command is based on [vue-cli](https://github.com/vuejs/vue-cli) project.\n\n## Contribution\nPlease send pull requests improving the usage and fixing bugs, improving documentation and providing better examples, or providing some testing, because these things are important.\n\n## License\nMoleculer-cli is available under the [MIT license](https://tldrlegal.com/license/mit-license).\n\n## Contact\nCopyright (c) 2026 MoleculerJS\n\n[![@moleculerjs](https://img.shields.io/badge/github-moleculerjs-green.svg)](https://github.com/moleculerjs) [![@MoleculerJS](https://img.shields.io/badge/twitter-MoleculerJS-blue.svg)](https://twitter.com/MoleculerJS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoleculerjs%2Fmoleculer-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-cli/lists"}