A simple command-line interface (CLI) tool for creating, editing, deleting, and managing notes. This tool allows you to quickly manage your notes directly from your terminal.
- Add notes with a title and content.
- List all notes by title.
- View a single note by its index.
- Edit notes to update the title or content.
- Delete notes by index.
- Clear all notes at once.
To use this tool, you'll need to have Node.js installed on your machine. Once Node.js is set up, you can install the CLI globally or clone the repository.
git clone https://github.com/yourusername/note-taking-cli.git
cd note-taking-clinpm installTo make the CLI available globally, run the following command in the project directory:
npm linkAfter installation, you can use the CLI with the following commands:
To add a new note with a title and content:
note add --title "My Note Title" --content "This is the content of my note."To list all note titles:
note listTo show a note by its index:
note show <index>Replace with the note number you want to view.
To edit an existing note:
note edit <index> --title "New Title" --content "Updated content."To delete a note by its index:
note delete <index>To delete all notes:
note clearContributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.
- Fork the repository.
- Create your feature branch: git checkout -b feature/YourFeature.
- Commit your changes: git commit -m 'Add some feature'.
- Push to the branch: git push origin feature/YourFeature.
- Open a pull request.
Abul Hossain GitHub