ホーム 格闘技 What is Google Workspace CLI (gws)? A new tool to make your work easier with a single command

What is Google Workspace CLI (gws)? A new tool to make your work easier with a single command

東條 淳平 東條 淳平 • 更新: • 公開: • 読了約 23 分
目次

When using Google Workspace every day, have you ever felt, "I wish this task could be easier..."?

Many people likely spend a surprising amount of time on routine report creation or searching for specific emails.

In the midst of this, in March 2026, Google released a new tool called "Google Workspace CLI (gws)".

In this article, I will explain in an easy-to-understand way what this gws tool is and how it will change our work.

Introduction

n37b97c4ea846

I personally use Google Workspace daily for my work, and Gmail, Google Calendar, and Google Drive have become indispensable tools for me.

On the other hand, in situations like "I want to summarize email search results into a spreadsheet" or "I want to check multiple people's schedules at once," I have felt the limitations of manual work in a browser. While there are ways to automate with GAS, there are surprisingly many subtle tasks that don't quite warrant writing and configuring code.

When I learned about the release of Google Workspace CLI and tried it out, I felt it had the potential to resolve those "minor inconveniences" I had been feeling. In this article, I would like to share my experience using it and some tips for its application.

1. What is Google Workspace CLI (gws)?

First, let's look at the basics of what "Google Workspace CLI (gws)" is.

In short, it is a new command-line tool released by Google that allows you to operate almost all Google Workspace services with just a single command.

* Please note that although it was developed and released by Google employees, it is not an officially supported Google product.

You might feel that "commands" sound difficult, but a major appeal is that it can be used with the ease of giving instructions in a chat.

Eliminating tedious manual work and complex settings

Until now, to organize files in Google Drive in bulk, you had to click manually or write code using Google Apps Script (GAS).

However, by using gws, tasks like "changing the names of all files in a specific folder" can be completed with just a single line of command.

The biggest feature is that it is designed with the premise that "AI" will perform the operations

The most notable point about this tool is that it is designed with an eye toward "a future where AI (Artificial Intelligence) operates on our behalf."

When we ask AI in Japanese, "List up the available times for next week," the AI interprets those words and operates the calendar through gws. Such applications are already becoming a reality.

2. How to choose between gws and GAS (Google Apps Script)

If you are already using GAS, you might be wondering, "How should I choose between them?" Since I also used GAS to automate my daily tasks, I found the differences hard to grasp at first.

After actually using both, I believe the following approach to choosing between them is best.

Google Workspace CLI (gws)

  • Strengths: Immediate execution, AI integration, file operations

  • Execution environment: Your PC, terminal, AI agent

  • Ease of use: Very high (completed in one line)

  • Best for: When you want quick results on the spot, such as "I want to check this file right now" or "I want to automate tasks by instructing an AI"

Google Apps Script (GAS)

  • Strengths: Scheduled execution, web app development, complex automation

  • Execution environment: On Google's servers

  • Ease of use: Moderate (requires writing in an editor)

  • Best for: When you want to run tasks automatically at set times, such as "I want to automatically send a report every morning at 9 AM" or "I want to trigger a process based on a form submission"


3. What you can achieve with gws! 4 concrete examples

From here, I will introduce what you can specifically do with gws.

1. Automated email aggregation

You can automate tasks such as "search for emails containing 'invoice' in the subject line and export the information to a spreadsheet."

For example, you can search Gmail with a command like the following.

gws gmail users messages list --params '"userId": "me", "q": "subject:請求書"'
2. Batch file naming rules

Automatically create a folder named "March 2026" and standardize file names like "202603_Estimate.pdf." This eliminates the hassle of organizing files.

3. Scheduling for multiple people

If you ask gws, "What time are Person A, Person B, and I free next Monday afternoon?" it will cross-reference everyone's calendars and list the available times.

4. Automated report creation

The process of collecting only the numerical values from separate sheets held by each person and consolidating them into a master sheet is also instantaneous.

I tried the email aggregation in ① myself, and being able to complete a task that used to require searching, copying, and pasting in a browser with just one command was more comfortable than I imagined.

4. Three mechanisms that non-engineers will also appreciate

Why is gws so revolutionary? There are clever mechanisms behind it.

  1. Always use the latest features
    When Google adds new features, gws automatically reads them. We can always operate the latest Google Workspace without having to update the tool ourselves.

  2. Fast and stable processing (built with Rust)
    Because it is built with a system programming language called "Rust," the processing speed is fast and the operation is stable. This lack of stress is important precisely because it is a tool used daily.

  3. Data format that is highly compatible with AI
    The output results are returned in a format called "JSON," which is easy for AI to understand. This enables smooth integration with AI assistants.

5. The true value of gws! "MCP" to let AI handle your work

The biggest reason why gws is called "next-generation." That is its support for "MCP (Model Context Protocol)".

This is a common rule for AI to use external tools as if they were its own hands and feet. Because gws supports this rule, the AI understands "I can use gws to operate this person's calendar" and becomes able to execute it.

Specifically, when you connect gws to an MCP-compatible client such as Claude Desktop, Gemini CLI, or VS Code, the AI will operate Google Workspace through gws just by following natural Japanese instructions like "List next week's meetings" or "Upload this file to Drive."

Until now, it was necessary to "memorize commands," but the fact that MCP allows you to "just convey what you want to do in Japanese" is a major change.

6. Let's give it a try! 3 steps to get started

To get started with gws, you need the following environment:

  • Node.js must be installed

  • gcloud CLI (Google Cloud CLI) must be installed and authenticated

  • Google account (Google Workspace account) must be held

* If you haven't installed Node.js yet, you can install it from the official website ( https://nodejs.org/ ).
* You can install the gcloud CLI from the official Google Cloud page ( https://cloud.google.com/sdk/docs/install ).

Step 1: Installation

If you have a Node.js environment, you can install it with the following single command.

npm install -g @googleworkspace/cli
Step 2: Login configuration

Link it with your Google account (first time only).

gws auth setup
Step 3: Verification

Let's try displaying your calendar events!

gws calendar events list --params '"calendarId": "primary"'

7. Points to note before you start using it

Finally, there are two important points.

  • It is an experimental project: This tool was just released in March 2026. Please understand that it is in a "pre-release stage" where specifications may change in the future.

  • Not officially supported: Although developed by Google employees, there is no support through official channels. You will need to gather information through GitHub Issues and Discussions.

However, the GitHub repository is actively updated, and information is being shared within the community. Precisely because it is in the pre-release stage, getting hands-on experience early will help you adapt smoothly to future changes.

Summary

In this article, we introduced Google Workspace CLI (gws), released in March 2026, covering everything from its basic overview and how to distinguish its use from GAS, to concrete application examples and integration with AI.

To recap, here are the three main points:

  • gws is a command-line tool that allows you to perform Google Workspace operations with a single command line

  • Since its role differs from GAS, it is effective to use them selectively based on your purpose

  • With support for MCP, the potential for integration with AI is likely to expand further in the future

Although it is still in the pre-release stage, trying it out led to discoveries like 'I can even do this with a command,' and I felt it is a very attractive tool as a new option for streamlining business operations.

First, check the repository and please give it a try.

Check the Google Workspace CLI repository

同じカテゴリの記事

東條 淳平

スポーツと芸能が交差する話題を担当。大会公式記録と所属先の発表を突き合わせ、数字は必ず出典付きで扱います。

おすすめの関連記事