Skip to content
beetlix/swarm
← All reviews

Google Workspace CLI Review 2026: Gmail and Drive from the Terminal

4.2/ 5
Arif AriyanReviewed by Arif Ariyan · Senior Software Engineer ·
Google Workspace CLI Review 2026: Gmail and Drive from the Terminal

What Google Workspace CLI is and who it's for

Google Workspace CLI is a single command-line tool for interacting with Google Workspace services — Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin. The project lives at github.com/googleworkspace/cli and is documented on the Google Workspace developer site. It's free to use, with no paid tier listed on the project page.

The tool is aimed at developers and system administrators who already live in a terminal. If you're the kind of person who scripts everything — backups, report generation, file organization — this CLI gives you a way to reach Google services without opening a browser. It's also useful for automation: you can run commands in cron jobs, CI pipelines, or shell scripts.

It's not for casual users. If you just want to check email or upload a file occasionally, the web UI is fine. The CLI is for people who want to batch operations, integrate with other command-line tools, or manage many files and messages programmatically.

Coverage: Drive, Gmail, Calendar, Sheets, Docs, Chat

The CLI covers a broad set of Workspace services. The official description lists Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin. That's a wide net, but coverage isn't uniform across services. Some commands are deep, others are shallow.

Drive

Drive is probably the most mature part of the CLI. You can list files, upload, download, move, copy, and delete. You can search by name, MIME type, or full-text query. The commands map closely to the Drive API, so if you know the API, you'll feel at home.

Example: gcloud drive upload --file=report.pdf --parent=1abc123 — that's the kind of thing you'd run in a script. You can also list files with filters: gcloud drive list --query="name contains 'invoice'". The output is plain text or JSON, which makes it easy to pipe into jq or other tools.

Gmail

Gmail support includes sending, reading, and searching messages. You can list threads, get message details, and send emails with attachments. Search uses Gmail's query syntax, so from:boss after:2026/01/01 works as expected.

One limitation: the CLI doesn't do everything the Gmail API does. For example, managing filters or labels is possible but not as polished as Drive. You'll often need to pass raw API parameters for advanced operations.

Calendar

Calendar commands let you list events, create events, and manage calendars. You can specify attendees, times, and reminders. It's useful for automating meeting creation or pulling a day's schedule into a script.

But the calendar coverage is thinner than Drive. Some operations, like managing multiple calendars or handling recurring events, require extra flags or manual JSON. It works, but don't expect the same level of polish.

Sheets and Docs

Sheets and Docs support is read-heavy. You can read cell values, update cells, and create documents. For Sheets, you can append rows, which is handy for logging. For Docs, you can create and edit text content.

These services are less complete than Drive. Complex formatting, styles, and rich content are hard to manage from the CLI. You'll likely use the CLI for simple data entry or extraction, not for document design.

Chat and Admin

Chat lets you send messages to spaces, and Admin covers user management tasks like listing users or updating settings. These are newer additions and feel less battle-tested. The Admin commands are useful for quick lookups, but for serious admin work you'd probably still use the Admin console or API directly.

Setup, auth, and scripting workflows

Setup is straightforward if you've used Google Cloud tools before. The CLI is built on the gcloud command-line tool, so you install it as a component: gcloud components install cli. Then you authenticate with gcloud auth login, which opens a browser for OAuth. For service accounts, you can use gcloud auth activate-service-account with a key file.

Authentication is the biggest hurdle for new users. You need a Google Cloud project with the Workspace APIs enabled. That means going to the Cloud Console, creating a project, enabling APIs, and possibly setting up OAuth consent. The documentation walks through this, but it's not a one-command setup.

Once authenticated, scripting is where the CLI shines. You can write shell scripts that loop over files, send emails, or update spreadsheets. Because output is JSON by default (or you can switch to text), you can parse results with jq or python.

Example workflow: a nightly backup script that uploads a database dump to Drive and sends a confirmation email via Gmail. That's two commands in a cron job. Or a script that reads a Google Sheet of customer data and generates a report.

For CI/CD, you can use service account credentials stored as environment variables. The CLI respects GOOGLE_APPLICATION_CREDENTIALS, so it works in GitHub Actions or GitLab CI without interactive login.

Where it beats the web UI and where it doesn't

The CLI wins in several scenarios:

  • Batch operations: Moving hundreds of files, deleting old emails, or updating many spreadsheet rows is painful in a browser. A loop in a shell script is faster and less error-prone.
  • Automation: Anything that needs to run on a schedule or trigger from another process belongs in a script. The CLI makes that possible.
  • Reproducibility: A command is a repeatable action. You can version-control your scripts and know exactly what they do. The web UI is manual and hard to audit.
  • Integration: Piping output into other tools — jq, awk, python — is natural. The web UI doesn't give you data in a machine-readable format.

But the web UI still wins in other areas:

  • Rich editing: Formatting a document, designing a spreadsheet with charts, or composing a complex email with inline images is far easier in the browser. The CLI is text-only.
  • Discovery: Browsing files, searching visually, and exploring folders is faster with a GUI. The CLI requires you to know what you're looking for.
  • Collaboration: Real-time co-editing, comments, and sharing permissions are not something you'd do from a terminal. The CLI is for single-user automation.
  • Error recovery: If a command fails, you get an error message, but debugging complex operations (like a failed batch upload) is harder than seeing it visually.

In short, the CLI is a tool for automation, not for human interaction. Use it when you want to script, not when you want to work interactively.

GitHub stars, repo health, release cadence

The repository at github.com/googleworkspace/cli shows 30,411 stars as of this review. That's a strong signal of community interest. The project is under the googleworkspace org, which adds credibility — it's an official Google project, not a third-party wrapper.

Release cadence is active. The repository shows regular commits and releases, though I don't have exact dates. The project has been around for a few years and has gone through version changes. It's not abandoned; there's ongoing maintenance.

One thing to note: the CLI is built on gcloud, which means it inherits the stability and update cycle of the Google Cloud SDK. That's a double-edged sword. On one hand, you get reliable auth and infrastructure. On the other, you need the full gcloud installed, which is a heavy dependency if you only want a simple CLI.

Issues and pull requests are handled in the open. The repository shows a healthy number of contributors and a responsive maintainer team. For a tool like this, that matters — you want bugs fixed and new features added.

Verdict: who should use it and who shouldn't

Use Google Workspace CLI if you're a developer or admin who wants to automate Workspace tasks. It's free, official, and covers the main services. If you already use gcloud, the learning curve is minimal. It's great for scripts, cron jobs, and CI pipelines.

Don't use it if you're a casual user or if you need rich document editing. The web UI is better for interactive work. Also, if you need deep functionality in a specific service (like complex Calendar management), you might be better off using the API directly or a specialized tool.

Overall, it's a solid tool for its niche. It won't replace the web UI, but it fills a real gap for terminal-based automation. If you're already in the Google Cloud ecosystem, it's worth adding to your toolkit.

How this review was researched

This review is based on public information: the official Google Workspace developer documentation, the project's GitHub repository (linked above), and the pricing data available on the project page. No hands-on testing was performed. All claims about features and behavior come from documentation and repository signals.

What works

  • Free and official Google project
  • Covers Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin
  • JSON output for easy scripting
  • Active repository with 30,411 stars
  • Integrates with gcloud auth

What doesn't

  • Setup requires Google Cloud project and API enablement
  • Coverage uneven across services
  • Requires gcloud installation
  • Not for rich editing or interactive use

The verdict

Google Workspace CLI is a capable tool for automating Workspace tasks from the terminal, especially for developers already using gcloud. It's free and covers the main services, but setup is non-trivial and coverage varies. Use it for scripting and automation, not for interactive work.

FAQ

Is Google Workspace CLI free?
Yes, the tool is free to use. There is no paid tier listed on the project page or documentation.
What services does Google Workspace CLI support?
It supports Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin. Coverage varies by service, with Drive being the most complete.
How do I authenticate Google Workspace CLI?
You authenticate using gcloud auth login for user accounts or gcloud auth activate-service-account for service accounts. You need a Google Cloud project with the Workspace APIs enabled.

Keep reading

  1. OllamaproductivityAug 24, 2026

    Ollama Review 2026: Run Local LLMs Free

    Ollama is the fastest way to run a local LLM, and it is free. It is ideal for developers who want privacy and quick experiments, but not for production-scale serving. If you need high concurrency, look at vLLM instead.

    4.5/ 5
  2. MarkItDownproductivityAug 23, 2026

    MarkItDown Review 2026: PDF to Markdown for LLMs

    MarkItDown is the best free starting point for converting documents to Markdown for LLM pipelines. It is simple, local, and produces clean output for most digital files. For complex or scanned PDFs, pair it with a paid tool like LlamaParse.

    4.2/ 5
  3. JCodeproductivityAug 23, 2026

    JCode Review 2026: AI Code Assistant Tested

    JCode is a solid AI coding assistant that offers a free tier, model flexibility, and memory efficiency. It is worth a trial for developers who want agentic features without Cursor's price or lock-in. Still behind Cursor on polish, but a strong contender for budget-conscious or privacy-focused teams.

    4.2/ 5
  4. QwenPawproductivityAug 23, 2026

    QwenPaw Review 2026: Qwen's Open-Source Coding Agent

    QwenPaw is a promising open-source coding agent that delivers solid performance with Qwen models at a fraction of the cost of commercial alternatives. It is not yet a production-default for most teams, but for Qwen-centric stacks and local-first setups, it is worth serious consideration.

    3.8/ 5