A simple, terminal-based task management tool built with Node.js, Yargs, and Chalk. Manage your tasks directly from the command line — add, list, complete, and delete tasks effortlessly!
- Add new tasks
- List all tasks (with optional flags)
- Mark tasks as complete
- Delete tasks
- Handles invalid commands with helpful error messages
todo-cli/
├── index.js # Main entry point
├── commands/
│ ├── add.js # Add command logic
│ ├── list.js # List command logic
│ ├── complete.js # Complete command logic
│ └── delete.js # Delete command logic
├── utils/
│ ├── fileHandler.js # File read/write functions
│ └── timeHelper.js # getTimeAgo function
└── tasks.json # Task storage
- Clone the repository:
git clone <repo-url>
cd <repo-folder>- Install dependencies:
npm install- Link the CLI globally:
npm linkOnce linked, you can use the CLI with the tasks command:
tasks add "Complete the project"tasks listShow completed tasks:
tasks list --alltasks complete <task_id>tasks delete <task_id>- Invalid commands show friendly error messages.
- Missing arguments prompt proper usage hints.