Gws Tasks

Manage Google Tasks lists and individual tasks via CLI

What Is This?

Overview

Gws Tasks is a command-line skill built on the Google Workspace CLI that enables developers and productivity-focused users to manage Google Tasks directly from the terminal. Rather than switching to a browser or mobile app to handle task lists and individual tasks, users can interact with the Google Tasks API through structured shell commands. This makes it possible to integrate task management into scripts, automation pipelines, and development workflows without leaving the command-line environment.

The skill follows the standard gws command pattern, using a resource and method structure to target specific parts of the Google Tasks API. Task lists and tasks themselves are treated as separate resources, each with their own set of supported methods. Authentication and global configuration are handled through the shared gws setup, meaning once credentials are in place, the Tasks skill works alongside other Google Workspace CLI skills without additional configuration overhead.

This tool is part of the broader googleworkspace/cli source, which provides a consistent interface across multiple Google Workspace services. Gws Tasks specifically targets the Tasks v1 API, giving users programmatic access to the same task data visible in Gmail, Google Calendar, and the dedicated Google Tasks application.

Who Should Use This

  • Developers who want to automate task creation or list management as part of CI/CD pipelines or project workflows
  • System administrators managing productivity tooling for teams that rely on Google Workspace
  • Power users who prefer terminal-based workflows and want to avoid context-switching to browser applications
  • DevOps engineers building scripts that track work items or trigger task updates based on system events
  • Technical project managers who need to query or update task lists programmatically across multiple projects
  • Anyone already using the gws CLI for other Google Workspace services and looking to extend their automation to task management

Why Use It?

Problems It Solves

  • Eliminates the need to open a browser or mobile app to perform routine task management operations during development sessions
  • Removes manual steps from workflows that need to create, update, or delete tasks based on automated triggers or script output
  • Provides a scriptable interface for task data that the standard Google Tasks UI does not expose to non-developer users
  • Reduces context-switching for developers who spend most of their working time in terminal environments
  • Enables consistent task management operations that can be version-controlled and shared across teams as shell scripts

Core Highlights

  • Follows the standard gws <resource> <method> [flags] command pattern for consistency
  • Integrates with the shared gws authentication system, requiring no separate credential setup
  • Targets the Google Tasks v1 API for reliable, documented behavior
  • Supports task list operations including deletion of authenticated task lists
  • Works alongside other gws skills for unified Google Workspace automation
  • Suitable for inclusion in shell scripts, Makefiles, and CI pipelines
  • Lightweight CLI interaction with no GUI dependencies

How to Use It?

Basic Usage

All Gws Tasks commands follow this structure:

gws tasks <resource> <method> [flags]

To view available options and subcommands:

gws tasks --help

To delete a specific task list:

gws tasks tasklists delete --tasklist <TASKLIST_ID>

Specific Scenarios

Scenario 1: Cleaning up completed project task lists

After a project concludes, archived task lists can be removed programmatically rather than manually through the UI:

gws tasks tasklists delete --tasklist MDEwMTk4NTU0NzE2NjY3ODQ1OTY6MDow

Scenario 2: Integrating task cleanup into a deployment script

A post-deployment script can remove staging task lists automatically:

#!/bin/bash
TASKLIST_ID="your-tasklist-id"
gws tasks tasklists delete --tasklist "$TASKLIST_ID"
echo "Task list removed after deployment."

Real-World Examples

Example 1: A developer finishes a sprint and runs a cleanup script that deletes all completed sprint task lists from Google Tasks, keeping the workspace organized without manual intervention.

Example 2: A team automation script queries and removes outdated onboarding task lists for former team members as part of an offboarding workflow.

Important Notes

Requirements

  • The gws binary must be installed and available in the system PATH
  • Valid Google Workspace authentication must be configured through the shared gws setup
  • The user account must have appropriate permissions to manage Google Tasks via the API
  • Run gws generate-skills if the shared skill configuration file is missing