Skip to content

todo task list

List tasks from a Microsoft To Do task list

Usage

m365 todo task list [options]

Options

--listName [listName]
The name of the task list to return tasks from. Specify either listName or listId, not both
--listId [listId]
The id of the task list to return tasks from. Specify either listName or listId, not both
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

List tasks from Microsoft To Do tasks list with the name My task list

m365 todo task list --listName "My task list"

List tasks from Microsoft To Do tasks list with the id AQMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MAAuAAADMN-7V4K8g0q_adetip1DygEAxMBBaLl1lk_dAn8KkjfXKQABF-BAgwAAAA==

m365 todo task list --listId "AQMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MAAuAAADMN-7V4K8g0q_adetip1DygEAxMBBaLl1lk_dAn8KkjfXKQABF-BAgwAAAA=="

Response

[
  {
    "importance": "high",
    "isReminderOn": true,
    "status": "notStarted",
    "title": "New task",
    "createdDateTime": "2022-10-29T11:03:20.9175176Z",
    "lastModifiedDateTime": "2022-10-29T11:13:23.6672968Z",
    "hasAttachments": false,
    "categories": [],
    "id": "AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=",
    "body": {
      "content": "I should not forget this",
      "contentType": "text"
    },
    "dueDateTime": {
      "dateTime": "2023-01-01T00:00:00.0000000",
      "timeZone": "UTC"
    },
    "reminderDateTime": {
      "dateTime": "2023-01-01T12:00:00.0000000",
      "timeZone": "UTC"
    }
  }
]
id                                                                                                                                                        title           status      createdDateTime               lastModifiedDateTime
--------------------------------------------------------------------------------------------------------------------------------------------------------  --------------  ----------  ----------------------------  ----------------------------
AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=  New task        notStarted  2022-10-29T11:03:20.9175176Z  2022-10-29T11:13:23.6672968Z
id,title,status,createdDateTime,lastModifiedDateTime
AAMkAGYzNjMxYTU4LTJjZjYtNDlhMi1iMzQ2LWVmMTU3YmUzOGM5MABGAAAAAAAw3-tXgryDSr5p162KnUPKBwDEwEFouXWWT50CfwqSN9cpAAL3xdLTAADEwEFouXWWT50CfwqSN9cpAAL3xhtSAAA=,New task,notStarted,2022-10-29T11:03:20.9175176Z,2022-10-29T11:13:23.6672968Z