$npx -y skills add googleworkspace/cli --skill recipe-create-task-listSet up a new Google Tasks list with initial tasks.
| 1 | # Create a Task List and Add Tasks |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-tasks` |
| 4 | |
| 5 | Set up a new Google Tasks list with initial tasks. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. Create task list: `gws tasks tasklists insert --json '{"title": "Q2 Goals"}'` |
| 10 | 2. Add a task: `gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Review Q1 metrics", "notes": "Pull data from analytics dashboard", "due": "2024-04-01T00:00:00Z"}'` |
| 11 | 3. Add another task: `gws tasks tasks insert --params '{"tasklist": "TASKLIST_ID"}' --json '{"title": "Draft Q2 OKRs"}'` |
| 12 | 4. List tasks: `gws tasks tasks list --params '{"tasklist": "TASKLIST_ID"}' --format table` |