Introduction to GWS CLI

 3 min read

YouTube video ID: Wu67lLD8bB0

PDF

Google has released a powerful command‑line interface (CLI) for Google Workspace, known as GWS. The tool lets users interact with Drive, Gmail, Calendar, Docs, Sheets, Admin and other Workspace services through simple text commands. By replacing multiple API calls and graphical steps, GWS streamlines complex workflows into single‑line operations.

Key Features and Benefits

  • Unified Interface – One CLI covers all major Workspace apps, eliminating the need to learn separate APIs.
  • JSON‑First Responses – Every command returns structured JSON, making the output readily consumable by AI agents and automation scripts.
  • Auto‑Discovery – The CLI automatically updates its knowledge of new Google endpoints, requiring minimal maintenance from the user.
  • Built‑In Skills and Recipes – Over 100 pre‑defined “skills” automate multi‑step tasks such as creating documents from templates, scheduling meetings, or generating slide decks.
  • Reduced Overhead – By consolidating many API configurations into a single tool, developers avoid the administrative burden of managing multiple credentials and endpoints.

Understanding CLIs vs. GUIs

A CLI relies on text‑based commands entered in a terminal, whereas a GUI presents buttons, forms and visual menus. In the context of Google Workspace, the CLI translates typed instructions into the same underlying API calls that a graphical interface would trigger, but does so more directly and scriptable.

Installation and Setup Process

The GWS CLI is open‑source and free, hosted on GitHub. Installation can be started from Google’s Cloud Code IDE by supplying the repository URL. Cloud Code reads the project documentation, checks prerequisites, and guides the user through either an automatic setup using the G‑Cloud CLI or a manual setup.

For manual installation, users must:

  1. Create a new project in the Google Cloud Console (e.g., “Claude Code GWS”).
  2. Configure the OAuth consent screen and generate an OAuth client ID and secret.
  3. Save the downloaded JSON credentials to the global configuration path global.config/GWS.
  4. Authenticate with gws auth login, which opens a browser for account selection and permission granting.
  5. Enable the required Google Cloud APIs (Drive, Docs, etc.) for the project.

Demonstrations and Use Cases

  • YouTube Resource Guide – A single bash command feeds a YouTube video link to GWS, which downloads the transcript, formats it into a Google Doc with headers and links, and saves the result.
  • Email Triage – GWS fetches unread emails, assigns priority scores based on business context, and automatically marks emails with a score below five as unread. In one demo, the CLI identified 30 unread messages.
  • Google Slides Generation – The CLI creates a slide deck from scratch, applies brand guidelines, inserts logos (e.g., images generated by “Nano Banana 2”), and performs visual validation by opening the deck in a browser, taking screenshots, and programmatically fixing spacing or layout issues.
  • Visual Validation Loop – Integrated with Chrome Dev Tools, GWS can open generated pages, capture screenshots, analyze visual criteria, and apply corrective commands without manual intervention.
  • Document Search – A vague query like “find my Google doc that I made in April of 2025” returns multiple matching documents, demonstrating the CLI’s ability to interpret natural language and locate relevant files.

Project Status and Future Outlook

GWS CLI remains an open‑source beta project, described as a “developer playground.” Active development means users should expect breaking changes as the tool progresses toward a stable v1.0 release. The CLI automatically incorporates new Google Workspace API endpoints, keeping its capabilities current. While some users find the tool “insanely overpowered,” others note occasional finickiness, such as re‑authentication prompts. The speaker encourages developers to install GWS within Cloud Code to explore its potential for automation and AI‑assisted development.

  Takeaways

  • GWS provides a single command‑line interface that accesses all major Google Workspace apps, simplifying complex tasks into text commands.
  • Over 100 built‑in skills enable multi‑step workflows such as document creation, email triage, and slide deck generation.
  • Installation can be performed through Cloud Code or manually via OAuth setup, with credentials stored in a global configuration path.
  • Demonstrations show GWS handling YouTube transcript conversion, automated email prioritization, visual validation of Slides, and fuzzy document searches.
  • As an open‑source beta, GWS is actively developed, so users should anticipate breaking changes while benefiting from rapid feature updates.

Frequently Asked Questions

Who is Nate Herk | AI Automation on YouTube?

Nate Herk | AI Automation is a YouTube channel that publishes videos on a range of topics. Browse more summaries from this channel below.

Does this page include the full transcript of the video?

Yes, the full transcript for this video is available on this page. Click 'Show transcript' in the sidebar to read it.

Helpful resources related to this video

If you want to practice or explore the concepts discussed in the video, these commonly used tools may help.

Links may be affiliate links. We only include resources that are genuinely relevant to the topic.

PDF