Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contacts CLI

This is a simple CLI tool to manage your contacts using Node.js and Commander.

Usage

Before working with the contacts, run the seed command to populate the contact database with sample data:

node index.js -a seed

Available Commands

  • Seed contacts:

    node index.js -a seed
  • List all contacts:

    node index.js -a list
  • Get contact by id:

    node index.js -a get -i <contactId>
  • Add new contact:

    node index.js -a add --name <name> -e <email> -p <phone>
  • Remove a contact:

    node index.js -a remove -i <contactId>

Replace <contactId>, <name>, <email>, and <phone> with the relevant information.

Exmaple:

node index.js -a seed
node index.js -a list
node index.js -a get -i 05olLMgyVQdWRwgKfg5J6
node index.js -a add -n Mango -e mango@gmail.com -p 322-22-22
node index.js -a remove -i qdggE76Jtbfd9eWJHrssH

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages