An open API service indexing awesome lists of open source software.

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.

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_name

positional arguments:
task_name task name for new task

optional 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