https://github.com/michimani/todoist-cli
This is simple command line tool for Todoist.
https://github.com/michimani/todoist-cli
Last synced: 3 months ago
JSON representation
This is simple command line tool for Todoist.
- Host: GitHub
- URL: https://github.com/michimani/todoist-cli
- Owner: michimani
- Created: 2020-01-15T07:56:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T00:39:31.000Z (11 months ago)
- Last Synced: 2025-01-04T15:57:16.760Z (5 months ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
todoist-cli
===This is simple command line tool for Todoist.
# Feature
- list projects
- add a task# Usage
## Preparing
0. get token
Access to [Todoist App Management Console](https://developer.todoist.com/appconsole.html) and create a new Todoist App. A test token will be generate with new app, so use it.
1. create `config.ini` file```
$ cp config.ini.sample config.ini
```
and replace `your_todoist_token` in `config.ini` to your Todoist App access token. (test token)2. install Python modules
This tool work on Python `3.x`.
```
$ python3 -m venv .venv && source ./.venv/bin/activate
```
Install modules.
```
$ pip install -r requirements.txt
```## Use CLI
### list projects
```
$ python src/list-projects.py -h
usage: list-projects.py [-h] [-f FULL_SYNC]optional arguments:
-h, --help show this help message and exit
-f FULL_SYNC, --full_sync FULL_SYNC
"1" for full sync
```- `-f` is optional parameter for *full_sync* with value `1`
### add a task
```
$ python src/add-task.py -h
usage: add-task.py [-h] [-p PROJECT_ID] task_namepositional arguments:
task_name task name for new taskoptional arguments:
-h, --help show this help message and exit
-p PROJECT_ID, --project_id PROJECT_ID
project ID for new task added
```- `task_name` is required for task name
- `-p` or `--project_id` is optional parameter for project ID