https://github.com/roerohan/test-cli
A sample Command Line Interface built with Commander-js
https://github.com/roerohan/test-cli
Last synced: about 1 year ago
JSON representation
A sample Command Line Interface built with Commander-js
- Host: GitHub
- URL: https://github.com/roerohan/test-cli
- Owner: roerohan
- Created: 2019-04-26T16:13:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T07:53:55.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T12:46:15.886Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-CLI
test-CLI is a template Command Line Interface made with Node-js.
Check out the Node-js or Django App Generator at https://github.com/csivitu/CSI-WebApp-Template/.
# Requirements
Node-js (and npm)
MongoDB
# Installation
This works only for Unix based environments.
```bash
cd path/to/directory/test-CLI
npm install
sudo npm link
```
### OR
```bash
cd path/to/directory/test-CLI
npm run install-link
```
Now test-cli can be used globally.
# Usage
```
test-cli --version : Gives the version being used
test-cli --help : Shows all commands in a help page
test-cli add : Adds a User to the local MongoDB database.
```
# Uninstall
```bash
cd path/to/directory/test-CLI
sudo npm unlink
npm uninstall
```
### OR
```bash
cd path/to/directory/test-CLI
npm run uninstall-unlink
```