A simple Command Line Interface (CLI) Todo application built with Node.js. This CLI allows you to manage your todo list directly from the command line.
- Add new todo items
- Update existing todo items
- Mark items as done (remove from list)
- Find items by search term
- List all todo items
- Retrieve the next item from the todo list
Ensure you have Node.js and npm installed on your system.
To check if you have Node.js and npm installed, run the following commands:
node -v
npm -v
git clone https://github.com/chbappy-cse/Todo-CLI-Projects-JavaScript.git
1.Clone this repository to your local machine:
git clone https://github.com/chbappy-cse/Todo-CLI-Projects-JavaScript.git
2.Navigate to the project directory:
cd todo-cli
3.Install the dependencies:
npm install
4.Link the project globally so you can use the todo-cli command from anywhere:
npm link
Add a new item to the todo list.
todo-cli add --text="Your task here"
View all the current todo items in your list.
todo-cli list
Search for todo items containing a specific term.
todo-cli find --term="Find Text"
Update an existing todo item by its ID.
todo-cli update --id=<id> --text="Updated task text"
Remove the first item from the todo list (mark it as done).
todo-cli done
- Get the Next Todo Item Get the next item from the todo list (the first item).
todo-cli next