This is a terminal app that connects your todoist tasks with your terminal.
Made with:
- Go
- Libraries:
- Cobra
- Resty
-
Clone the repository:
git clone https://github.com/yourusername/todoist-cli.git cd todoist-cli
-
Create a
.env
file at the root of the project and add your Todoist API token:TODOIST_API_TOKEN=your_api_token_here
To get your token:
- Go to Settings > Integrations > Developer
- Then copy your API TOKEN
-
Install the required dependencies:
go get
-
Build the binary app:
go build -o todoist-cli
-
Run the binary from the current directory:
./todoist-cli list ./todoist-cli add "Your task" ./todoist-cli done 1
-
Additionally you can also use it without building a binary by doing:
go run main.go list go run main.go add
- List all active tasks
todoist-cli list
- Add new tasks.
todoist-cli add "My new task"
- Mark tasks as complete.
todoist-cli done 2 // number of the task in the list
Feel free to fork this repository and submit pull requests to improve the functionality or fix bugs.