An open API service indexing awesome lists of open source software.

https://github.com/jellydn/moleculer-connect

A command-line interface for connecting to Moleculer microservices
https://github.com/jellydn/moleculer-connect

cli moleculerjs repl

Last synced: 4 months ago
JSON representation

A command-line interface for connecting to Moleculer microservices

Awesome Lists containing this project

README

          

Welcome to moleculer-connect 👋



Version

Documentation


Maintenance


License: MIT

> A command-line interface for connecting to Moleculer microservices

### 🏠 [Homepage](https://github.com/jellydn/moleculer-connect#readme)

## Usage

```sh
npm install moleculer-connect moleculer-repl@0.6.6
```

For example, run below command to connect to a Moleculer TypeScript project:

```sh
NODE_OPTIONS='--import tsx' moleculer-connect --env --config moleculer.config.ts
```

## Options

The CLI supports several options to customize the connection:

```sh
Options:
--version Show version number [boolean]
--help Show help [boolean]
-c, --config Load configuration from a file [string] [default: ""]
--ns Namespace [string] [default: ""]
--level Logging level [string] [default: "info"]
--id NodeID [string] [default: null]
-h, --hot Enable hot-reload [boolean] [default: false]
--serializer Serializer [string] [default: null]
--commands Custom REPL command file mask (e.g.: ./commands/*.js)
[string] [default: null]
```

## Pre-commit hooks

This project uses [pre-commit](https://pre-commit.com/) to enforce code quality. To install the pre-commit hooks, run:

```sh
pre-commit install
```

## Author

👤 **Dung Huynh Duc **

- Github: [@jelydn](https://github.com/jelydn)

## Show your support

Give a ⭐️ if this project helped you!

[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/dunghd)
[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/dunghd)
[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dunghd)

## 📝 License

Copyright © 2023 [Dung Huynh Duc ](https://github.com/jelydn).

This project is [MIT](https://github.com/jelydn/moleculer-connect/blob/master/LICENSE) licensed.