mongo-service-aman
v1.0.4
Published
Run and stop MongoDB replica set services using CLI
Downloads
13
Readme
Mongo Service
A command-line interface (CLI) tool for managing MongoDB replica set services. Easily start and stop MongoDB services directly from your terminal.
Table of Contents
Installation
Clone the repository:
git clone https://github.com/Amanp30/mongo-service.git cd mongo-service
Install the dependencies:
npm install
(Optional) Install globally to use as a command:
npm install -g .
Usage
You can run the CLI commands directly using npm scripts or the command you set up after installing globally.
Commands
Start all MongoDB services:
npm run start
Or if installed globally:
mongo-service start
Stop all MongoDB services:
npm run stop
Or if installed globally:
mongo-service stop