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

https://github.com/kateryna-borysenko/contact-shelf-cli

CLI application for managing contacts
https://github.com/kateryna-borysenko/contact-shelf-cli

cli-app commanderjs expressjs nodejs nodemon

Last synced: 3 months ago
JSON representation

CLI application for managing contacts

Awesome Lists containing this project

README

          

# Contact Shelf CLI

## Description

Contact Shelf CLI is a command-line application for managing contacts. It allows users to perform basic CRUD operations (Create, Read, Update, Delete) on contacts stored in a JSON file.

## Installation

To run this project, you must have [Node.js](https://nodejs.org/) installed.

1. Clone the project repository:

```
git clone https://github.com/Kateryna-Borysenko/contact-shelf-cli.git
```

2. Navigate to the project directory:

```
cd contact-shelf-cli
```

3. Install the required dependencies:

```
npm install
```

## Usage

After installation, you can use the following commands to manage contacts:

- **List all contacts:**
`node index.js -a list`

- **Get a contact by ID:**
`node index.js -a get -i `

- **Add a new contact:**
`node index.js -a add -n -e -p `

- **Remove a contact by ID:**
`node index.js -a remove -i `

- **Update contact information:**
`node index.js -a update -i -n -e -p `

## License

[MIT](https://choosealicense.com/licenses/mit/)