{
  "id": 3641289,
  "title": "How Can You and Use Google Workspace CLI",
  "url": "https://urgent.news/2026/08/27/how-can-you-and-use-google-workspace-cli",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-27T02:01:50.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/preecha/how-can-you-and-use-google-workspace-cli-1fm1"
  },
  "original_language": "en",
  "account": "Google Workspace CLI (gws) is an open-source command-line tool that automates tasks across Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and other Google Workspace APIs. It dynamically creates commands using Google’s Discovery Service, eliminating the need for separate SDKs, custom OAuth flows, or hand-written curl scripts.\n\nTo use gws, install Node.js 18 or later. You can run the tool without installing by using npx, or install it globally with npm install -g @googleworkspace/cli. After installation, you can check the version with gws --version.\n\nAuthentication is handled through the gws auth setup command, which creates a Google Cloud project if necessary, enables required Workspace APIs, and completes the initial OAuth flow. Credentials are saved securely in the operating system’s keyring and encrypted with AES-256-GCM.\n\nCommon tasks include listing Drive files, uploading files, sending emails via Gmail, creating events in Calendar, appending rows to Sheets, inserting text into Docs, posting messages to Chat, and more. Each action is performed using its respective gws command prefix, such as gws drive, gws gmail, gws calendar, gws sheets, gws docs, or gws chat.\n\nOptional features include dry-run mode to preview API calls, pagination via --page-all, and exporting or manually configuring authentication credentials. To ensure security, treat exported credential files as secrets and avoid committing them to source control.",
  "summary": "Automate Google Workspace from the command line with gws Google Workspace CLI ( gws ) is an open-source command-line tool that provides unified access to Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and other Google Workspace APIs. It builds commands dynamically from Google’s Discovery Service, so you can automate Workspace tasks without maintaining separate SDKs, custom OAuth flows, or…",
  "key_points": [],
  "editors_take": "The Google Workspace CLI tool simplifies automation of tasks across multiple Google services, allowing users to streamline workflows and boost productivity with a unified command-line interface.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}