Coder Social home page Coder Social logo

todoist-cli's Introduction

todoist CLI

Installation

Note: Ensure that the Go workspace is set up before proceeding.

Run these commands:

$ go get github.com/originalang/todoist-cli
$ cd $GOPATH/src/github.com/originalang/todoist-cli

Once inside the downloaded directory, run the go installation command:

$ go install   

This will save an executable file in the $GOPATH/bin directory. Make sure that this directory has been added to your $PATH variable to ensure that you can use the todoist-cli command from any location.

Configuration

  1. Login to your todoist account
  2. Navigate to this page and follow the instructions to issue a new API token
  3. Create a new environment variable called TODOIST_TOKEN and set it to your API token

Usage

For detailed usage instructions, use the -h flag with the relevant command

Project Commands

Retrieve a list of user projects:

$ todoist-cli project list 

Add a new project:

$ todoist-cli project add -n "New Project"

Delete a project:

$ todoist-cli project delete -n "Project_Name"

Item Commands

The todoist Sync API refers to tasks as items, so this project does the same.

Retrieve and display a list of items for a particular project. These will be displayed hierarchically with the correct indent.

$ todoist-cli item list -n "Project_Name"

Add an item to a project. If no project is specified, the item is added to the "Inbox". The indent can be specified using the -i flag (1, 2, 3, or 4).

$ todoist-cli item add -n "Project_Name" -c "New item: Do a task" -d "tomorrow @ 1pm"

Delete a project. The item ID is needed to execute this command. This is displayed next to the item when you list items for a project.

$ todoist-cli item delete --id 294573453

Complete a project. The ID is needed for this command as well. If the item is a subtask, it will be completed and displayed with a check next to it. If it is a main item (no indent), it will be completed and moved to history.

$ todoist-cli item complete --id 294573453

todoist-cli's People

Contributors

originalang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.