TODO-CLI is a command line interface todo app built with NodeJS and SQLite.
- clone project with
git clone https://github.com/7odadocoding/todoCli.git
- after navigating to the project root folder
- run
npm install
to install all dependencies. - run
npm link
to access thetodo
command anywhere on your pc. - run
npm run migrate
to create the database tables required.
The following commands are available for managing your todos:
todo new --title=[title] [--desc=[description]]
[title] (required): The title of the todo.
[description] (optional): The description of the todo.
todo get [--filter=[filter]] [--id=[id]]
[filter] (optional): The filter to apply. Possible values: 'all'
, 'done'
, 'undone'
. Default: 'all'
.
[id] (optional): The ID of a specific todo to retrieve.
todo done --id=[id]
[id] (required): The ID of the todo to mark as done.
todo undone --id=[id]
[id] (required): The ID of the todo to mark as undone.
todo delete --id=[id]
[id] (required): The ID of the todo to delete.